In 0.9, you can use the syntax:
m:[{(c:chararray, m1:[chararray])}]Daniel On 03/17/2011 09:18 AM, Alan Gates wrote:
Currently there is no way to specify the schema for values in the map up front. You have to cast them when you bring them out of the map. We hope to resolve that in 0.9. Alan. On Mar 17, 2011, at 2:11 AM, deepak kumar v wrote:I have a UDF , the output is a tuple of the following format ( [ 'Key'#{ ( chararray,[ 'key', chararray]) }] ) I am able to specify output schema for the outer tuple and inner Map. I need to specify schema for the key , ValueBag within the map and schema for tuples within ValueBag. And items within tuple. Regards, Deepak
