Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

Read bytes and fixed avro types with decimal logicalType as DecimalType #268

Open
peter-ungvari opened this issue Feb 10, 2018 · 2 comments

Comments

@peter-ungvari
Copy link

peter-ungvari commented Feb 10, 2018

From avro version 1.7.7 released in mid-2014, decimal numbers are supported with decimal logical type of bytes or fixed types: Avro spec. v1.7.7, current

Decimal values from avro files matching this specification are unable to read using current avro-spark releases.

Related issues:
#257 - similar logicalType handling for string type
#246 - writing decimals in this format
#248
#121 - PR

@mzitnik
Copy link

mzitnik commented Jun 10, 2018

Hi @peter-ungvari

Having a problem with this issue spark-avro save data in BigDecimal type and reading back to DecimalType any idea when it will fixed or is there already a branch with this fix.

@peter-ungvari
Copy link
Author

Hi @mzitnik ,

Branch is branch-3.2, but PR was not accepted.

If you are using version 3.2, you may try https://bintray.com/peter-ungvari/maven/spark-avro/3.3.0
This was released from my fork.

I don't think anybody will merge my PR anytime soon, see #276

After the project built successfully on my fork, Travis failed to download sbt api on PR in some cases:
https://travis-ci.org/databricks/spark-avro/builds/356975870?utm_source=github_status&utm_medium=notification

[FAILED     ] org.scala-sbt#api;0.13.13!api.jar: The HTTP response code for https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/api/0.13.13/jars/api.jar did not indicate a success. See log for more detail. (294ms)

Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants