I guess a workaround could be to Base64 decode the pig.script property
and look for AS statements
On 09/15/2012 12:38 PM, Alan Gates wrote:
Unfortunately, no. I agree we should add that to the LoadFunc interface.
Alan.
On Sep 15, 2012, at 1:13 AM, Jim Donofrio wrote:
Is there anyway within a LoadFunc to access the schema that a user defines
after AS in a LOAD statement? Is there some property I can access in the
UDFContext or ? pushProjection provides the schema from a FOREACH GENERATE and
getSchema seems to be only meant to read part of the actual file or a JSON
schema file off disk.