Home Forums Pig Help req in Pig script!!

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  Seth Lyubich 1 year, 6 months ago.

  • Creator
    Topic
  • #23244

    dinesh karem
    Member

    Using the below small pigscript
    ” loading = load ‘NYSE-2000-2001.tsv’ using PigStorage(‘,’);
    generatecols = FOREACH loading GENERATE $0 as exchange, $1 as stock_symbol, $3 as date;
    Filtering = FILTER generatecols BY stock_symbol==’ASP';
    dump Filtering; ”
    Getting no error but getting 0 records in o/p, Hcatalog is not used, .xls file used, Guess some thing wrong in my filter.

    Could anyone please help !!
    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #23316

    Seth Lyubich
    Keymaster

    Thanks for letting us know Dinesh.

    Collapse
    #23246

    dinesh karem
    Member

    Please ignore my above Query .. found my mistake

    Collapse
Viewing 2 replies - 1 through 2 (of 2 total)