[ 
https://issues.apache.org/jira/browse/PIG-2112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046198#comment-13046198
 ] 

Alan Gates commented on PIG-2112:
---------------------------------

The offending lines are:

{code}
230             if (DataType.isAtomic(this.type)) {
231                 sb.append(DataType.findTypeName(this.type));
232             } else {
233                 if (this.schema!=null)
234                     stringifyResourceSchema(sb, this.schema, this.type,
235             }
{code}

The map never has a schema, but is not atomic, so it's type name or brackets 
are never printed.

> ResourceSchema.toString does not properly handle maps in the schema
> -------------------------------------------------------------------
>
>                 Key: PIG-2112
>                 URL: https://issues.apache.org/jira/browse/PIG-2112
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.9.0
>            Reporter: Alan Gates
>            Assignee: Alan Gates
>            Priority: Minor
>
> ResourceSchema.toString prints an invalid schema string when there is a map 
> in the schema.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to