Closed sananguliyev closed 2 years ago
Hello please can you provide a bit more information? What is the schema for field_name
?
Yes sure. It's longitude data and type is DECIMAL(16, 15)
. The parquet is created by other tool automatically and TBH do not know why 16,15
. Is the type issue?
I'm afraid so, the plugin just uses the standard avro-parquet
parser to read data, and so it looks like one value has a precision of 17 when the type restricts it to 16. Are you able to read this file using parquet-tools
(https://pypi.org/project/parquet-tools/)?
Yes. That's why I created an issue without checking the type of the field. parquet-tools
is able to read that parquet file without any issue, even without any warning about the type mismatch.
parquet-tools
uses Apache Arrow underneath which is better-supported than avro-parquet
these days, but sadly not available in Java and IntelliJ plugins can't be written in Python. If there's a decimal with 17 precision being stored in a field with a limit of 16 then I'd expect an error. I'm afraid this won't be fixed in this plugin unless a new version of avro-parquet
fixes it.
Thank you very much for explanation.