[
https://issues.apache.org/jira/browse/AVRO-3997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yaniv Rubinpur updated AVRO-3997:
---------------------------------
Description:
Related to https://issues.apache.org/jira/browse/AVRO-2211
There is still no create method for logical schema. The only way to do it
currently is by parsing a JSON string:
Schema.Parse(@"\{""type"":""long"", ""logicalType"":""timestamp-millis""}");
LogicalSchema should have a create method like other schema types:
LogicalSchema.Create(Schema baseSchema, string logicalTypeName, ...);
was:
Related to https://issues.apache.org/jira/browse/AVRO-2211
There is still no way to build a logical schema (using create methods). The
only way to do it currently is by parsing a JSON string:
Schema.Parse(@"\{""type"":""long"", ""logicalType"":""timestamp-millis""}");
There should be a way to create it with a factory method like other schema
types:
LogicalSchema.Create(Schema baseSchema, string logicalTypeName, ...);
> Add a way to create logical schema from code
> --------------------------------------------
>
> Key: AVRO-3997
> URL: https://issues.apache.org/jira/browse/AVRO-3997
> Project: Apache Avro
> Issue Type: Improvement
> Affects Versions: 1.11.3
> Reporter: Yaniv Rubinpur
> Priority: Minor
>
> Related to https://issues.apache.org/jira/browse/AVRO-2211
> There is still no create method for logical schema. The only way to do it
> currently is by parsing a JSON string:
> Schema.Parse(@"\{""type"":""long"", ""logicalType"":""timestamp-millis""}");
> LogicalSchema should have a create method like other schema types:
> LogicalSchema.Create(Schema baseSchema, string logicalTypeName, ...);
--
This message was sent by Atlassian Jira
(v8.20.10#820010)