Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-5394

bag typecast in filter failing to parse

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • parser
    • None

    Description

      From https://stackoverflow.com/questions/58968054/nested-bag-tuple-casting-works-in-generate-statement-but-not-filter-statement-in

      The following doesn't work

      b = group a by query;
      c = filter b by MAX((bag{tuple(int)})a.datetime) > 0;
      

      I get a complaint about mismatched ; on the MAX line.

      However the following does work

      c = foreach b {
        generate MAX((bag{tuple(int)})a.datetime) as max_dt;
      }
      

      How come the bag{tuple(int)} casting works in generate statement but not in filter statement?

      Attachments

        Activity

          People

            Unassigned Unassigned
            knoguchi Koji Noguchi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: