How to get input scheme in exec function in Pig UDF

I wonder how I can get the input scheme in the exec () function when I create UDF in Piglatin. I can get the schema from the outputSchema () function, but it looks like the result cannot be used with the backend functions.

Any hints would be much appreciated!

+4
source share
1 answer

As far as I know, there is a getInputSchema method in Pig UDF (EvalFunc). Have you tried this?

https://pig.apache.org/docs/r0.11.1/api/org/apache/pig/EvalFunc.html

+1
source

Source: https://habr.com/ru/post/1447319/


All Articles