You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by ch...@apache.org on 2013/06/29 00:54:06 UTC

svn commit: r1497954 [3/3] - in /pig/trunk: ./ .eclipse.templates/ ivy/ src/docs/src/documentation/content/xdocs/ src/org/apache/pig/builtin/ src/org/apache/pig/impl/util/avro/ test/ test/org/apache/pig/builtin/ test/org/apache/pig/builtin/avro/ test/o...

Added: pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsAsOutputByPigWithDates.json
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsAsOutputByPigWithDates.json?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsAsOutputByPigWithDates.json (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsAsOutputByPigWithDates.json Fri Jun 28 22:54:05 2013
@@ -0,0 +1,33 @@
+{
+ "key" : {"string": "A"},
+ "intValue" : {"int" : 1},
+ "longValue" : {"long" : 1},
+ "booleanValue" : {"boolean" : true},
+ "floatValue" : {"float" : 1.0},
+ "doubleValue" : {"double" : 1.0},
+ "bytesValue" : {"bytes" : "\u00FF"},
+ "nullValue" : null,
+ "date" : {"long" : 1367366400000}
+}
+{
+ "key" : {"string": "B"},
+ "intValue" : {"int" : 2},
+ "longValue" : {"long" :2},
+ "booleanValue" : {"boolean" : true},
+ "floatValue" : {"float" : 2.0},
+ "doubleValue" : {"double" : 2.0},
+ "bytesValue" : {"bytes" : "\u00FE"},
+ "nullValue" : null,
+ "date" : {"long" : 1367366400000}
+}
+{
+ "key" : {"string": "C"},
+ "intValue" : {"int" : 3},
+ "longValue" : {"long" :3},
+ "booleanValue" : {"boolean" : false},
+ "floatValue" : {"float" : 3.0},
+ "doubleValue" : {"double" : 3.0},
+ "bytesValue" : {"bytes" : "\u00FD"},
+ "nullValue" : null,
+ "date" : {"long" : 1367366400000}
+}

Added: pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsOfArrays.json
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsOfArrays.json?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsOfArrays.json (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsOfArrays.json Fri Jun 28 22:54:05 2013
@@ -0,0 +1,3 @@
+{"key" : "1 one", "values" : [1]}
+{"key" : "2 twos", "values" : [2, 2]}
+{"key" : "first 7 numbers in fibonacci sequence", "values" : [1, 1, 2, 3, 5, 8, 13]}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsOfArraysOfRecords.json
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsOfArraysOfRecords.json?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsOfArraysOfRecords.json (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsOfArraysOfRecords.json Fri Jun 28 22:54:05 2013
@@ -0,0 +1,15 @@
+{"key" : "A",
+ "values" : [
+    {"k" : "a", "v" : 1}
+ ]
+}
+{"key" : "B",
+ "values" : []
+}
+{"key" : "C",
+ "values" : [
+    {"k" : "c", "v" : 3},
+    {"k" : "c1", "v" : 4},
+    {"k" : "c2", "v" : 5}
+ ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsSubSchema.json
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsSubSchema.json?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsSubSchema.json (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsSubSchema.json Fri Jun 28 22:54:05 2013
@@ -0,0 +1,12 @@
+{
+ "key" : "A",
+ "intValue" : 1
+}
+{
+ "key" : "B",
+ "intValue" : 2
+}
+{
+ "key" : "C",
+ "intValue" : 3
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsSubSchemaNullable.json
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsSubSchemaNullable.json?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsSubSchemaNullable.json (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsSubSchemaNullable.json Fri Jun 28 22:54:05 2013
@@ -0,0 +1,12 @@
+{
+ "key" : {"string" : "A"},
+ "value" : { "string" : "a"}
+}
+{
+ "key" : {"string" : "B"},
+ "value" : { "string" : "b"}
+}
+{
+ "key" : {"string" : "C"},
+ "value" : { "string" : "c"}
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithDoubleUnderscores.json
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithDoubleUnderscores.json?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithDoubleUnderscores.json (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithDoubleUnderscores.json Fri Jun 28 22:54:05 2013
@@ -0,0 +1,12 @@
+{
+ "A__key" : {"string" : "A"},
+ "B__C__intValue" : {"int" : 1}
+}
+{
+ "A__key" : {"string" : "B"},
+ "B__C__intValue" : {"int" : 2}
+}
+{
+ "A__key" : {"string" : "C"},
+ "B__C__intValue" : {"int" : 3}
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithEnums.json
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithEnums.json?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithEnums.json (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithEnums.json Fri Jun 28 22:54:05 2013
@@ -0,0 +1,4 @@
+{"key" : "A", "value" : 1, "type" : "GOOD"}
+{"key" : "B", "value" : 2, "type" : "BAD"}
+{"key" : "C", "value" : 3, "type" : "OTHER"}
+{"key" : "D", "value" : 1, "type" : "OTHER"}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithFixed.json
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithFixed.json?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithFixed.json (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithFixed.json Fri Jun 28 22:54:05 2013
@@ -0,0 +1,2 @@
+{"key" : "lowestUnroutable", "value" : "0A000000"}
+{"key" : "highestUnroutable", "value" : "C0A8FFFF"}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithMaps.json
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithMaps.json?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithMaps.json (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithMaps.json Fri Jun 28 22:54:05 2013
@@ -0,0 +1,17 @@
+{"key" : "A",
+ "value" : 1,
+ "parameters" : {
+   "comment" : "first test case"
+   }
+}
+{"key" : "B",
+ "value" : 2,
+ "parameters" : {
+    "comment" : "second map item",
+    "also" : "the next item has an empty map"
+    }
+}
+{"key" : "C",
+ "value" : 3,
+ "parameters" : {}
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithMapsOfRecords.json
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithMapsOfRecords.json?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithMapsOfRecords.json (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithMapsOfRecords.json Fri Jun 28 22:54:05 2013
@@ -0,0 +1,17 @@
+{"key" : "A",
+ "value" : 1,
+ "parameters" : {
+   "firstParameter" : {"k" : "firstParameterKey", "v" : 1}   
+  }
+}
+{"key" : "B",
+ "value" : 2,
+ "parameters" : {}
+}
+{"key" : "C",
+ "value" : 1,
+ "parameters" : {
+   "firstParameter" : {"k" : "firstParameterKey", "v" : 70},
+   "secondParameter" : {"k" : "secondParameterKey", "v" : 0}
+   }
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithNullableUnions.json
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithNullableUnions.json?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithNullableUnions.json (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithNullableUnions.json Fri Jun 28 22:54:05 2013
@@ -0,0 +1,4 @@
+{"key" : {"string" : "A"}, "value" : null}
+{"key" : {"string" : "B"}, "value" : {"int" : 1}}
+{"key" : null, "value" : null}
+{"key" : null, "value" : {"int" : 2}}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithSimpleUnion.json
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithSimpleUnion.json?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithSimpleUnion.json (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithSimpleUnion.json Fri Jun 28 22:54:05 2013
@@ -0,0 +1,2 @@
+{"key" : "A", "value" : {"long" : 1}}
+{"key" : "B", "value" : {"int" : 2}}

Added: pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithSimpleUnionOutput.json
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithSimpleUnionOutput.json?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithSimpleUnionOutput.json (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/data/json/recordsWithSimpleUnionOutput.json Fri Jun 28 22:54:05 2013
@@ -0,0 +1,2 @@
+{"key":"A","intValue":1}
+{"key":"B","intValue":2}

Added: pig/trunk/test/org/apache/pig/builtin/avro/data/json/recursiveRecord.json
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/data/json/recursiveRecord.json?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/data/json/recursiveRecord.json (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/data/json/recursiveRecord.json Fri Jun 28 22:54:05 2013
@@ -0,0 +1,29 @@
+{"key" : "A",
+ "value" : "a",
+ "next" : null}
+{"key" : "B",
+ "value" : "b",
+ "next" : {
+    "org.apache.pig.test.builtin.recursiveRecord" : {
+        "key" : "B1",
+        "value" : "b1",
+        "next" : null
+    }
+   }
+ }
+{"key" : "C",
+ "value" : "c",
+ "next" : {
+    "org.apache.pig.test.builtin.recursiveRecord" : {
+        "key" : "C1",
+        "value" : "c1",
+        "next" : {
+            "org.apache.pig.test.builtin.recursiveRecord" : {
+                "key" : "C2",
+                "value" : "c2",
+                "next" : null
+            }
+           }
+    }
+   }
+ }

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/arrays.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/arrays.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/arrays.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/arrays.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,6 @@
+{
+  "name" : "arrays",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "array",
+  "items" : "int"
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/arraysAsOutputByPig.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/arraysAsOutputByPig.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/arraysAsOutputByPig.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/arraysAsOutputByPig.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,19 @@
+{
+  "type" : "record",
+  "name" : "arrays",
+  "namespace" : "org.apache.pig.test.builtin",
+  "fields" : [ {
+    "name" : "array",
+    "type" : [ "null", {
+      "type" : "array",
+      "items" : {
+        "type" : "record",
+        "name" : "array",
+        "fields" : [ {
+          "name" : "array_0",
+          "type" : [ "null", "int" ]
+        } ]
+      }
+    } ]
+  } ]
+}

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/projectionTest.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/projectionTest.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/projectionTest.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/projectionTest.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,10 @@
+{
+  "name" : "projectionTest",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key", "type" : "string"},
+    {"name" : "intValue", "type" : "int"},
+    {"name" : "longValue", "type" : "long"}    
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recordWithRepeatedSubRecords.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recordWithRepeatedSubRecords.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recordWithRepeatedSubRecords.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recordWithRepeatedSubRecords.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,16 @@
+{ "name" : "recordWithRepeatedSubRecords",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key" , "type" : "string"},
+    {"name" : "value1" , "type" : {
+      "type" : "record",
+      "name" : "valuetype",
+      "fields" : [
+        {"name" : "thing", "type" : "string"},
+        {"name" : "count", "type" : "int"}
+      ]
+    }},
+    {"name" : "value2" , "type" : "valuetype"}
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/records.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/records.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/records.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/records.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,15 @@
+{
+  "name" : "records",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key", "type" : "string"},
+    {"name" : "intValue", "type" : "int"},
+    {"name" : "longValue", "type" : "long"},
+    {"name" : "booleanValue", "type" : "boolean"},
+    {"name" : "floatValue", "type" : "float"},
+    {"name" : "doubleValue", "type" : "double"},
+    {"name" : "bytesValue", "type" : "bytes"},
+    {"name" : "nullValue", "type" : "null"}    
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsAsOutputByPig.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsAsOutputByPig.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsAsOutputByPig.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsAsOutputByPig.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,15 @@
+{
+  "name" : "records",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key", "type" : ["null", "string"]},
+    {"name" : "intValue", "type" : ["null", "int"]},
+    {"name" : "longValue", "type" : ["null", "long"]},
+    {"name" : "booleanValue", "type" : ["null", "boolean"]},
+    {"name" : "floatValue", "type" : ["null", "float"]},
+    {"name" : "doubleValue", "type" : ["null", "double"]},
+    {"name" : "bytesValue", "type" : ["null", "bytes"]},
+    {"name" : "nullValue", "type" : "null"}    
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsAsOutputByPigWithDates.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsAsOutputByPigWithDates.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsAsOutputByPigWithDates.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsAsOutputByPigWithDates.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,16 @@
+{
+  "name" : "records",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key", "type" : ["null", "string"]},
+    {"name" : "intValue", "type" : ["null", "int"]},
+    {"name" : "longValue", "type" : ["null", "long"]},
+    {"name" : "booleanValue", "type" : ["null", "boolean"]},
+    {"name" : "floatValue", "type" : ["null", "float"]},
+    {"name" : "doubleValue", "type" : ["null", "double"]},
+    {"name" : "bytesValue", "type" : ["null", "bytes"]},
+    {"name" : "nullValue", "type" : "null"},
+    {"name" : "date", "type" : ["null", "long"]}    
+  ]
+}

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsOfArrays.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsOfArrays.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsOfArrays.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsOfArrays.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,14 @@
+{
+  "name" : "recordsOfArrays",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key", "type" : "string"},
+    {"name" : "values",
+     "type" : {
+       "type" : "array",
+       "items" : "int"
+     }    
+    }
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsOfArraysOfRecords.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsOfArraysOfRecords.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsOfArraysOfRecords.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsOfArraysOfRecords.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,21 @@
+{
+  "name" : "recordsOfArraysOfRecords",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key", "type" : "string"},
+    {"name" : "values",
+     "type" : {
+       "type" : "array",
+       "items" : {
+         "name" : "innerRecord",
+         "type" : "record",
+         "fields" : [
+            {"name" : "k", "type" : "string"},
+            {"name" : "v", "type" : "int"}
+         ]
+       }
+     }    
+    }
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsSubSchema.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsSubSchema.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsSubSchema.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsSubSchema.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,10 @@
+{
+  "name" : "records",
+  "namespace" : "org.apache.pig.test.builtin",
+  "doc" : "subset of records schema, to make sure you can manually specify a compatible subschema",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key", "type" : "string"},
+    {"name" : "intValue", "type" : "int"}
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsSubSchemaNullable.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsSubSchemaNullable.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsSubSchemaNullable.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsSubSchemaNullable.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,10 @@
+{
+  "name" : "recordsSubSchemaNullable",
+  "namespace" : "org.apache.pig.test.builtin",
+  "doc" : "subset of records schema, to make sure you can manually specify a compatible subschema",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key", "type" : ["null", "string"]},
+    {"name" : "value", "type" : ["null", "string"]}
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithDoubleUnderscores.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithDoubleUnderscores.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithDoubleUnderscores.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithDoubleUnderscores.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,9 @@
+{
+  "name" : "recordsWithDoubleUnderscores",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "record",
+  "fields" : [
+    {"name" : "A__key", "type" : ["null", "string"]},
+    {"name" : "B__C__intValue", "type" : ["null", "int"]}
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithEnums.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithEnums.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithEnums.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithEnums.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,12 @@
+{
+  "name" : "recordsWithEnums",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key", "type" : "string"},
+    {"name" : "value", "type" : "int"},
+    {"name" : "type", "type" :
+      {"type" : "enum", "name" : "typeEnum", "symbols" : ["GOOD","BAD","OTHER"]}    
+    }
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithFixed.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithFixed.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithFixed.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithFixed.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,11 @@
+{
+  "name" : "recordsWithFixed",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key", "type" : "string"},
+    {"name" : "value", "type" :
+      {"type" : "fixed", "size" : 8, "name" : "IPv4Address"}
+    }
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithMaps.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithMaps.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithMaps.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithMaps.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,12 @@
+{
+  "name" : "recordsWithMaps",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key", "type" : "string"},
+    {"name" : "value", "type" : "int"},
+    {"name" : "parameters", "type" :
+      {"type" : "map", "values" : "string"}  
+    }    
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithMapsOfRecords.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithMapsOfRecords.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithMapsOfRecords.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithMapsOfRecords.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,20 @@
+{
+  "name" : "recordsWithMapsOfRecords",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key", "type" : "string"},
+    {"name" : "value", "type" : "int"},
+    {"name" : "parameters", "type" :
+      {"type" : "map", "values" : {
+          "type" : "record",
+          "name" : "parameterMap",
+          "fields" : [
+            {"name" : "k", "type" : "string"},
+            {"name" : "v", "type" : "int"}
+          ]
+        }
+      }  
+    }    
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithNullableUnions.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithNullableUnions.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithNullableUnions.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithNullableUnions.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,9 @@
+{
+  "name" : "recordsWithNullableUnions",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key", "type" : ["string","null"]},
+    {"name" : "value", "type" : ["int","null"]}
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithSimpleUnion.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithSimpleUnion.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithSimpleUnion.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithSimpleUnion.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,9 @@
+{
+  "name" : "recordsWithSimpleUnion",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key", "type" : "string"},
+    {"name" : "value", "type" : ["int","long","null"]}
+  ]
+}

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithSimpleUnionOutput.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithSimpleUnionOutput.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithSimpleUnionOutput.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recordsWithSimpleUnionOutput.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,10 @@
+{
+  "name" : "records",
+  "namespace" : "org.apache.pig.test.builtin",
+  "doc" : "subset of records schema, to make sure you can manually specify a compatible subschema",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key", "type" : "string"},
+    {"name" : "intValue", "type" : "int"}
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/recursiveRecord.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/recursiveRecord.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/recursiveRecord.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/recursiveRecord.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,9 @@
+{ "name" : "recursiveRecord",
+  "namespace" : "org.apache.pig.test.builtin",
+  "type" : "record",
+  "fields" : [
+    {"name" : "key" , "type" : "string"},
+    {"name" : "value" , "type" : "string"},
+    {"name" : "next" , "type" : [ "org.apache.pig.test.builtin.recursiveRecord" , "null" ]}
+  ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/simpleRecordsTrevni.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/simpleRecordsTrevni.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/simpleRecordsTrevni.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/simpleRecordsTrevni.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,11 @@
+{
+ "name" : "simpleRecords",
+ "namespace" : "org.apache.test.builtin",
+ "type" : "record",
+ "fields" : [
+    {"name" : "key", "type" : "string"},
+    {"name" : "intValue", "type" : "int"},
+    {"name" : "stringValue", "type" : "string"},
+    {"name" : "doubleValue", "type" : "double"}
+ ]
+}
\ No newline at end of file

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/testDirectory.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/testDirectory.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/testDirectory.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/testDirectory.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,12 @@
+{
+  "type" : "record",
+  "name" : "testdirectory",
+  "namespace" : "org.apache.pig.test.builtin",
+  "fields" : [ {
+    "name" : "item",
+    "type" : "int"
+  }, {
+    "name" : "timestamp",
+    "type" : "long"
+  } ]
+}

Added: pig/trunk/test/org/apache/pig/builtin/avro/schema/testDirectoryCounts.avsc
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/builtin/avro/schema/testDirectoryCounts.avsc?rev=1497954&view=auto
==============================================================================
--- pig/trunk/test/org/apache/pig/builtin/avro/schema/testDirectoryCounts.avsc (added)
+++ pig/trunk/test/org/apache/pig/builtin/avro/schema/testDirectoryCounts.avsc Fri Jun 28 22:54:05 2013
@@ -0,0 +1,12 @@
+{
+  "type" : "record",
+  "name" : "stats",
+  "namespace" : "org.apache.pig.test.builtin",
+  "fields" : [ {
+    "name" : "itemSum",
+    "type" : [ "null", "int" ]
+  }, {
+    "name" : "n",
+    "type" : [ "null", "int" ]
+  } ]
+}

Modified: pig/trunk/test/unit-tests
URL: http://svn.apache.org/viewvc/pig/trunk/test/unit-tests?rev=1497954&r1=1497953&r2=1497954&view=diff
==============================================================================
--- pig/trunk/test/unit-tests (original)
+++ pig/trunk/test/unit-tests Fri Jun 28 22:54:05 2013
@@ -1,5 +1,6 @@
 **/TestAdd.java
 **/TestAlgebraicEvalLocal.java
+**/TestAvroStorage.java
 **/TestBagFormat.java
 **/TestBoolean.java
 **/TestCmdLineParser.java