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:17:00 UTC
[jira] [Updated] (AVRO-2491) Schema.createRecord allows to create
non parseable Schemas
[ https://issues.apache.org/jira/browse/AVRO-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ismaël Mejía updated AVRO-2491:
-------------------------------
Description:
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 parsedSchema = new Schema.Parser().parse(schema.toString());
{quote}
was:
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}
> 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
> Priority: Major
>
> 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 parsedSchema = new Schema.Parser().parse(schema.toString());
> {quote}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)