Skip to content

UDF Fails to operate on Different Columns #4

Description

@akhld

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions