Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3869

Error parsing fixed logical schemas

    XMLWordPrintableJSON

Details

    Description

      Logical types works only for primitive types, and I can't deserialize an fixed type, like this one:

       

      {
       "type": "fixed",
       "name": "LogicalFixed",
       "logicalType": "decimal",
       "precision": 4,
       "scale": 2,
        "size": 10
      }
      
      

      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

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              paulohumberto42 Paulo Humberto Lacerda e Silva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m