Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # dev >> How do you pass a schema to the backend in a builtin UDF?


Copy link to this message
-
Re: How do you pass a schema to the backend in a builtin UDF?
Take a look at UDFContext.

Sent from my iPhone

On Feb 12, 2013, at 7:54 PM, Russell Jurney <[EMAIL PROTECTED]> wrote:

> I am writing ToJson as a builtin.
>
> How do I send the schema of a builtin UDF to the back-end? In ToJson in
> github, I use udfProp.setProperty("horton.json.udf.schema", schemaString),
> but this doesn't seem right for a builtin?
>
> --
> Russell Jurney twitter.com/rjurney [EMAIL PROTECTED] datasyndrome.com