Re: How to refer field name in Jython UDF

2013-02-07 Thread Jonathan Coveney
Sorry, hit enter prematurely. Although in this particular case, it's a little janky, but you could have a helper which takes the thrift class i.e. get_name(some_field, 'SomeClass') and could use that SomeClass to let you refer by name. 2013/2/8 Jonathan Coveney > Currently, the answer to this

Re: How to refer field name in Jython UDF

2013-02-07 Thread Jonathan Coveney
Currently, the answer to this is no. In Javaland in 0.11.0 you can get the schema in an EvalFunc, and it would not be hard to make this available from a Jython UDF, though we'd need a patch. 2013/2/7 Stanley Xu > Dear All, > > We are using pig with elephant-bird thrift to process structured rec