You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Paulo Humberto Lacerda e Silva (Jira)" <ji...@apache.org> on 2023/09/21 00:34:00 UTC

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

Paulo Humberto Lacerda e Silva created AVRO-3869:
----------------------------------------------------

             Summary: 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


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)