You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Kalle Niemitalo (Jira)" <ji...@apache.org> on 2023/09/21 03:59:00 UTC

[jira] [Commented] (AVRO-3869) Error parsing fixed logical schemas

    [ https://issues.apache.org/jira/browse/AVRO-3869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17767368#comment-17767368 ] 

Kalle Niemitalo commented on AVRO-3869:
---------------------------------------

I had filed the same problem as AVRO-3570. I'll leave that one open for fixing the Rust implementation and clarifying the documentation.

> Error parsing fixed logical schemas
> -----------------------------------
>
>                 Key: AVRO-3869
>                 URL: https://issues.apache.org/jira/browse/AVRO-3869
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: csharp
>    Affects Versions: 1.11.2
>            Reporter: Paulo Humberto Lacerda e Silva
>            Priority: Major
>              Labels: Parsing, avro, c#, pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Logical types works only for primitive types, and I can't deserialize an fixed type, like this one:
>  
> {code:java}
> {
>  "type": "fixed",
>  "name": "LogicalFixed",
>  "logicalType": "decimal",
>  "precision": 4,
>  "scale": 2,
>   "size": 10
> }
> {code}
> An exception is SchemaParseException raised ("Undefined name: fixed at 'type'")
> This schema is autogenerated by PySpark, from a decimal type, and can't be parsed.
> Spark docs: https://spark.apache.org/docs/latest/sql-data-sources-avro.html
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)