Return-Path: Delivered-To: apmail-hadoop-avro-dev-archive@minotaur.apache.org Received: (qmail 151 invoked from network); 13 Jan 2010 22:18:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2010 22:18:18 -0000 Received: (qmail 53330 invoked by uid 500); 13 Jan 2010 22:18:18 -0000 Delivered-To: apmail-hadoop-avro-dev-archive@hadoop.apache.org Received: (qmail 53272 invoked by uid 500); 13 Jan 2010 22:18:18 -0000 Mailing-List: contact avro-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: avro-dev@hadoop.apache.org Delivered-To: mailing list avro-dev@hadoop.apache.org Received: (qmail 53262 invoked by uid 99); 13 Jan 2010 22:18:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 22:18:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 22:18:15 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 83CAD234C1F2 for ; Wed, 13 Jan 2010 14:17:54 -0800 (PST) Message-ID: <779050284.224221263421074538.JavaMail.jira@brutus.apache.org> Date: Wed, 13 Jan 2010 22:17:54 +0000 (UTC) From: "Doug Cutting (JIRA)" To: avro-dev@hadoop.apache.org Subject: [jira] Resolved: (AVRO-206) Java compiler/python parser don't conform to spec re object schema In-Reply-To: <1573607954.1258521519753.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AVRO-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doug Cutting resolved AVRO-206. ------------------------------- Resolution: Not A Problem Fix Version/s: 1.3.0 Assignee: Patrick Hunt (was: Doug Cutting) This was fixed by AVRO-242, but I've added these tests anyway. > Java compiler/python parser don't conform to spec re object schema > ------------------------------------------------------------------ > > Key: AVRO-206 > URL: https://issues.apache.org/jira/browse/AVRO-206 > Project: Avro > Issue Type: Bug > Components: java, python > Affects Versions: 1.2.0 > Reporter: Patrick Hunt > Assignee: Patrick Hunt > Fix For: 1.3.0 > > Attachments: AVRO-206.patch > > > According to the spec (if I'm reading it correctly) > -- > Primitive type names are also defined type names. Thus, for example, the schema "string" is equivalent to: > {"type": "string"} > -- protocol > A message has attributes: > * a response schema; and > -- > however the following fails to compile/parse under java/python: > { > "protocol": "p1", > "messages": { > "m1": { > "request": [], > "response": {"type":"string"} > } > } > } > Exception in thread "main" org.apache.avro.SchemaParseException: Type not yet supported: string > at org.apache.avro.Schema.parse(Schema.java:430) > at org.apache.avro.Protocol.parseMessage(Protocol.java:275) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.