pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject svn commit: r1203097 - in /pig/trunk/test/org/apache/pig/test: TestJsonLoaderStorage.java data/jsonStorage1.schema
Date Thu, 17 Nov 2011 08:13:21 GMT
Author: daijy
Date: Thu Nov 17 08:13:20 2011
New Revision: 1203097

URL: http://svn.apache.org/viewvc?rev=1203097&view=rev
Log:
Fix TestJsonLoaderStorage failure

Added:
    pig/trunk/test/org/apache/pig/test/data/jsonStorage1.schema
Modified:
    pig/trunk/test/org/apache/pig/test/TestJsonLoaderStorage.java

Modified: pig/trunk/test/org/apache/pig/test/TestJsonLoaderStorage.java
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/test/TestJsonLoaderStorage.java?rev=1203097&r1=1203096&r2=1203097&view=diff
==============================================================================
--- pig/trunk/test/org/apache/pig/test/TestJsonLoaderStorage.java (original)
+++ pig/trunk/test/org/apache/pig/test/TestJsonLoaderStorage.java Thu Nov 17 08:13:20 2011
@@ -92,7 +92,6 @@ public class TestJsonLoaderStorage {
         tmpFile.delete();
         
         File schemaFile = new File("test/org/apache/pig/test/data/jsonStorage1.schema");
-        schemaFile.delete();
         
         pigServer.registerQuery("a = load 'jsonStorage1.json' using" + 
         		" JsonLoader('a0:int,a1:{(a10:int,a11:chararray)},a2:(a20:double,a21:bytearray),a3:[chararray]');");

Added: pig/trunk/test/org/apache/pig/test/data/jsonStorage1.schema
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/test/data/jsonStorage1.schema?rev=1203097&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/test/data/jsonStorage1.schema (added)
+++ pig/trunk/test/org/apache/pig/test/data/jsonStorage1.schema Thu Nov 17 08:13:20 2011
@@ -0,0 +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":[]}



Mime
View raw message