avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ham...@apache.org
Subject svn commit: r901522 - in /hadoop/avro/trunk: CHANGES.txt lang/py/test/test_schema.py
Date Thu, 21 Jan 2010 04:13:06 GMT
Author: hammer
Date: Thu Jan 21 04:12:58 2010
New Revision: 901522

URL: http://svn.apache.org/viewvc?rev=901522&view=rev
Log:
AVRO-362. Add test to ensure Python implementation handles Union schema
with two fixed types of different names (hammer)


Modified:
    hadoop/avro/trunk/CHANGES.txt
    hadoop/avro/trunk/lang/py/test/test_schema.py

Modified: hadoop/avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/CHANGES.txt?rev=901522&r1=901521&r2=901522&view=diff
==============================================================================
--- hadoop/avro/trunk/CHANGES.txt (original)
+++ hadoop/avro/trunk/CHANGES.txt Thu Jan 21 04:12:58 2010
@@ -235,6 +235,9 @@
 
     AVRO-360. Standardize on Linux coding style instead of GNU (massie)
 
+    AVRO-362. Add test to ensure Python implementation handles Union schema
+    with two fixed types of different names (hammer)
+
   OPTIMIZATIONS
 
     AVRO-172. More efficient schema processing (massie)

Modified: hadoop/avro/trunk/lang/py/test/test_schema.py
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/lang/py/test/test_schema.py?rev=901522&r1=901521&r2=901522&view=diff
==============================================================================
--- hadoop/avro/trunk/lang/py/test/test_schema.py (original)
+++ hadoop/avro/trunk/lang/py/test/test_schema.py Thu Jan 21 04:12:58 2010
@@ -225,6 +225,13 @@
     """, True),
   ExampleSchema("""\
     {"type": "record",
+     "name": "ipAddr",
+     "fields": [{"name": "addr", 
+                 "type": [{"name": "IPv6", "type": "fixed", "size": 16},
+                          {"name": "IPv4", "type": "fixed", "size": 4}]}]}
+    """, True),
+  ExampleSchema("""\
+    {"type": "record",
      "name": "Address",
      "fields": [{"type": "string"},
                 {"type": "string", "name": "City"}]}



Mime
View raw message