Koji Noguchi created PIG-5394:
---------------------------------

             Summary: bag typecast in filter failing to parse
                 Key: PIG-5394
                 URL: https://issues.apache.org/jira/browse/PIG-5394
             Project: Pig
          Issue Type: Bug
          Components: parser
            Reporter: Koji Noguchi


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

{quote}
The following doesn't work
{code}
b = group a by query;
c = filter b by MAX((bag{tuple(int)})a.datetime) > 0;
{code}
I get a complaint about mismatched ; on the MAX line.

However the following does work

{code}
c = foreach b {
  generate MAX((bag{tuple(int)})a.datetime) as max_dt;
}
{code}
How come the bag\{tuple(int)} casting works in generate statement but not in 
filter statement?
{quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to