You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Lorand Bendig (JIRA)" <ji...@apache.org> on 2014/10/10 13:27:33 UTC
[jira] [Assigned] (PIG-4219) When parsing a schema, pig drops tuple
inside of Bag if it contains only one field
[ https://issues.apache.org/jira/browse/PIG-4219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lorand Bendig reassigned PIG-4219:
----------------------------------
Assignee: Lorand Bendig
> When parsing a schema, pig drops tuple inside of Bag if it contains only one field
> ----------------------------------------------------------------------------------
>
> Key: PIG-4219
> URL: https://issues.apache.org/jira/browse/PIG-4219
> Project: Pig
> Issue Type: Bug
> Reporter: Julien Le Dem
> Assignee: Lorand Bendig
> Attachments: PIG-4219.patch
>
>
> Example
> {code:java}
> //We generate a schema object and call toString()
> String schemaStr = "my_list: {array: (array_element: (num1: int,num2: int))}";
> // Reparsed using org.apache.pig.impl.util.Utils
> Schema schema = Utils.getSchemaFromString(schemaStr);
> // But no longer matches the original structure
> schema.toString();
> // => {my_list: {array_element: (num1: int,num2: int)}}
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)