sigmoidanalytics / pig

Mirror of Apache Pig
Apache License 2.0
1 stars 1 forks source link

UDF Fails to operate on Different Columns #4

Open akhld opened 10 years ago

akhld commented 10 years ago

UDF output is not proper, it is operating on the first column even if you specify some other column

Eg: REGISTER /home/akhld/mobi/temp/pig/demo/tutorial.jar; A = load 'hdfs://localhost:9000/input/' USING PigStorage('\t') AS (user:chararray, time:int, query:chararray); B = FOREACH A GENERATE org.apache.pig.tutorial.ToLower(query) as query; STORE B INTO '/tmp/query';

Fails to Operate on "query" column, but the processing happens on "user" column.

sigmoidanalytics commented 10 years ago

Streaming or non streaming. Can you split the project please. On 9 Jun 2014 07:48, "Akhil Das" notifications@github.com wrote:

UDF output is not proper, it is operating on the first column even if you specify some other column

Eg: REGISTER /home/akhld/mobi/temp/pig/demo/tutorial.jar; A = load 'hdfs://localhost:9000/input/' USING PigStorage('\t') AS (user:chararray, time:int, query:chararray); B = FOREACH A GENERATE org.apache.pig.tutorial.ToLower(query) as query; STORE B INTO '/tmp/query';

Fails to Operate on "query" column, but the processing happens on "user" column.

— Reply to this email directly or view it on GitHub https://github.com/sigmoidanalytics/pig/issues/4.

akhld commented 10 years ago

In both its having that issue. Assigned labels