kevinweil/elephant-bird — pull request #163 by rangadi (2012-03-09 04:31:54+00:00)
Title: Thrift union support

This patch adds support for thrift unions.

Thrift union structs keep just one field 'Object' and it could be set to any one of the declared fields in the union.

For Pig this would like any other thrift struct, except that only one of the fields is non-null. i.e. if a union has 5 fields, corresponding Pig tuple has 5 fields and only one of them is non-null at any time.