You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (Updated) (JIRA)" <ji...@apache.org> on 2012/01/09 07:57:39 UTC
[jira] [Updated] (PIG-2267) Make the name of the columns in schema
optional
[ https://issues.apache.org/jira/browse/PIG-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Dai updated PIG-2267:
----------------------------
Resolution: Fixed
Release Note:
Name part of the schema is optional in as clause in load and foreach statement. For example:
a = load 'data' as (int);
a = load 'data' as ({(int,int)});
y = foreach x generate x0 as int;
y = foreach x generate x0 as {(int, int)};
Pig will generate dummy name if the name part is missing.
Hadoop Flags: Reviewed
Status: Resolved (was: Patch Available)
Unit test pass.
test-patch:
[exec] -1 overall.
[exec]
[exec] +1 @author. The patch does not contain any @author tags.
[exec]
[exec] +1 tests included. The patch appears to include 6 new or modified tests.
[exec]
[exec] +1 javadoc. The javadoc tool did not generate any warning messages.
[exec]
[exec] -1 javac. The applied patch generated 898 javac compiler warnings (more than the trunk's current 894 warnings).
[exec]
[exec] +1 findbugs. The patch does not introduce any new Findbugs warnings.
[exec]
[exec] -1 release audit. The applied patch generated 510 release audit warnings (more than the trunk's current 502 warnings).
javac warning is caused by antlr generated code. I added Apache header to all new files, so ignore release audit warning.
Patch committed to trunk. Thanks Jonathan!
> Make the name of the columns in schema optional
> -----------------------------------------------
>
> Key: PIG-2267
> URL: https://issues.apache.org/jira/browse/PIG-2267
> Project: Pig
> Issue Type: Bug
> Components: parser
> Affects Versions: 0.9.0, 0.10, 0.11
> Reporter: Ashutosh Chauhan
> Assignee: Jonathan Coveney
> Fix For: 0.11
>
> Attachments: PIG2267.patch, PIG2267_1.patch
>
>
> Following two works:
> {code}
> a = load 'data';
> a = load 'data' as (f1:int);
> {code}
> Following doesn't:
> {code}
> a = load 'data' as (int);
> {code}
> It will be nice to make names of column optional.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira