You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ismaël Mejía (JIRA)" <ji...@apache.org> on 2019/07/30 16:09:00 UTC
[jira] [Created] (AVRO-2491) Schema.createRecord allows to create
non parseable Schemas
Ismaël Mejía created AVRO-2491:
----------------------------------
Summary: Schema.createRecord allows to create non parseable Schemas
Key: AVRO-2491
URL: https://issues.apache.org/jira/browse/AVRO-2491
Project: Apache Avro
Issue Type: Bug
Components: java
Affects Versions: 1.9.0
Reporter: Ismaël Mejía
Assignee: Ismaël Mejía
Avro's API allows to create records that are not parseable by Avro. We probably must document this behavior in detail and deprecate the methods for a future release. As an example both of these case produce Schema objects that are not parseable:
{quote}Schema schema = Schema.createRecord(fields);
Schema schema2 = Schema.createRecord("name", "doc", "namespace", false);
Schema parsedSchema = new Schema.Parser().parse(schema.toString());
Schema parsedSchema2 = new Schema.Parser().parse(schema.toString());
{quote}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)