[
https://issues.apache.org/jira/browse/PIG-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599550#action_12599550
]
sms edited comment on PIG-158 at 5/27/08 11:13 AM:
-------------------------------------------------------------------
Excellent question. In my opinion, both are the same. The parenthesis are
required when you have a list of columns to project. The simplest case is
having a single column in that list. In the example below, the type of A.x and
A.( x ) are the same. The type of A.(x,y) is a tuple with elements of
typeof(x), typeof( y )
E.g.:
{code}
Foreach A generate A.x, A.(x), A.(x,y);
{code}
was (Author: sms):
Excellent question. In my opinion, both are the same. The parenthesis are
required when you have a list of columns to project. The simplest case is
having a single column in that list. In the example below, the type of A.x and
A.(x) are the same. The type of A.(x,y) is a tuple with elements of typeof(x),
typeof(y)
E.g.:
{code}
Foreach A generate A.x, A.(x), A.(x,y);
{code}
> Rework logical plan
> -------------------
>
> Key: PIG-158
> URL: https://issues.apache.org/jira/browse/PIG-158
> Project: Pig
> Issue Type: Sub-task
> Components: impl
> Reporter: Alan Gates
> Assignee: Alan Gates
> Attachments: logical_operators.patch, logical_operators_rev_1.patch,
> logical_operators_rev_2.patch, logical_operators_rev_3.patch,
> parser_changes.patch, parser_changes_v1.patch, parser_changes_v2.patch,
> parser_changes_v3.patch, parser_changes_v4.patch, ParserErrors.txt,
> visitorWalker.patch
>
>
> Rework the logical plan in line with
> http://wiki.apache.org/pig/PigExecutionModel
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.