pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject svn commit: r1220587 - in /pig/branches/branch-0.10: src/org/apache/pig/parser/AstPrinter.g test/org/apache/pig/test/data/jsonStorage1.schema
Date Mon, 19 Dec 2011 01:39:41 GMT
Author: daijy
Date: Mon Dec 19 01:39:41 2011
New Revision: 1220587

URL: http://svn.apache.org/viewvc?rev=1220587&view=rev
Log:
Fix unit test failure caused by PIG-2427

Modified:
    pig/branches/branch-0.10/src/org/apache/pig/parser/AstPrinter.g
    pig/branches/branch-0.10/test/org/apache/pig/test/data/jsonStorage1.schema

Modified: pig/branches/branch-0.10/src/org/apache/pig/parser/AstPrinter.g
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.10/src/org/apache/pig/parser/AstPrinter.g?rev=1220587&r1=1220586&r2=1220587&view=diff
==============================================================================
--- pig/branches/branch-0.10/src/org/apache/pig/parser/AstPrinter.g (original)
+++ pig/branches/branch-0.10/src/org/apache/pig/parser/AstPrinter.g Mon Dec 19 01:39:41 2011
@@ -176,7 +176,7 @@ tuple_type 
 ;
 
 bag_type 
-    : ^( BAG_TYPE { sb.append("bag{"); } ( { sb.append("T:"); } tuple_type )? ) { sb.append("}");
} 
+    : ^( BAG_TYPE { sb.append("bag{"); } ( { sb.append("T:"); } IDENTIFIER? tuple_type )?
) { sb.append("}"); } 
 ;
 
 map_type : ^( MAP_TYPE { sb.append("map["); } type? ) { sb.append("]"); }

Modified: pig/branches/branch-0.10/test/org/apache/pig/test/data/jsonStorage1.schema
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.10/test/org/apache/pig/test/data/jsonStorage1.schema?rev=1220587&r1=1220586&r2=1220587&view=diff
==============================================================================
--- pig/branches/branch-0.10/test/org/apache/pig/test/data/jsonStorage1.schema (original)
+++ pig/branches/branch-0.10/test/org/apache/pig/test/data/jsonStorage1.schema Mon Dec 19
01:39:41 2011
@@ -1 +1 @@
-{"fields":[{"name":"a0","type":10,"description":"autogenerated from Pig Field Schema","schema":null},{"name":"a1","type":120,"description":"autogenerated
from Pig Field Schema","schema":{"fields":[{"name":null,"type":110,"description":"autogenerated
from Pig Field Schema","schema":{"fields":[{"name":"a10","type":10,"description":"autogenerated
from Pig Field Schema","schema":null},{"name":"a11","type":55,"description":"autogenerated
from Pig Field Schema","schema":null}],"version":0,"sortKeys":[],"sortKeyOrders":[]}}],"version":0,"sortKeys":[],"sortKeyOrders":[]}},{"name":"a2","type":110,"description":"autogenerated
from Pig Field Schema","schema":{"fields":[{"name":"a20","type":25,"description":"autogenerated
from Pig Field Schema","schema":null},{"name":"a21","type":50,"description":"autogenerated
from Pig Field Schema","schema":null}],"version":0,"sortKeys":[],"sortKeyOrders":[]}},{"name":"a3","type":100,"description":"autogenerated
from Pig Field Schema","schema":{"field
 s":[{"name":null,"type":55,"description":"autogenerated from Pig Field Schema","schema":null}],"version":0,"sortKeys":[],"sortKeyOrders":[]}}],"version":0,"sortKeys":[],"sortKeyOrders":[]}
+{"fields":[{"name":"a0","type":10,"description":"autogenerated from Pig Field Schema","schema":null},{"name":"a1","type":120,"description":"autogenerated
from Pig Field Schema","schema":{"fields":[{"name":"t","type":110,"description":"autogenerated
from Pig Field Schema","schema":{"fields":[{"name":"a10","type":10,"description":"autogenerated
from Pig Field Schema","schema":null},{"name":"a11","type":55,"description":"autogenerated
from Pig Field Schema","schema":null}],"version":0,"sortKeys":[],"sortKeyOrders":[]}}],"version":0,"sortKeys":[],"sortKeyOrders":[]}},{"name":"a2","type":110,"description":"autogenerated
from Pig Field Schema","schema":{"fields":[{"name":"a20","type":25,"description":"autogenerated
from Pig Field Schema","schema":null},{"name":"a21","type":50,"description":"autogenerated
from Pig Field Schema","schema":null}],"version":0,"sortKeys":[],"sortKeyOrders":[]}},{"name":"a3","type":100,"description":"autogenerated
from Pig Field Schema","schema":{"fields
 ":[{"name":null,"type":55,"description":"autogenerated from Pig Field Schema","schema":null}],"version":0,"sortKeys":[],"sortKeyOrders":[]}}],"version":0,"sortKeys":[],"sortKeyOrders":[]}



Mime
View raw message