Hi all,
    I have a UDTF that returns fields from an XML/SerDe based table.  So I have 
to return varying number of fields from the UDTF based on the number of xpath's 
in the query file.  I am not sure how to access the values of the parameters in 
the initialize() method of the UDTF.  It only has the ObjectInspector array. 
The UDTF itself works fine if I always return a fixed number of fields.

Something like 

select * from myudtf(xpathsfile);

Should return as many fields as there are xpaths in the file.  Or I can also 
modify the UDTF to take in a parameter for the number of fields, like

select * from myudtf(5,xpathsfile);

I am kind of against a wall here. Any help is appreciated.

Regards,
Murali.

Reply via email to