apache / apache/arrow-julia

Reading/writing Dec128

Open
#228 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
312
Forks
78
PR merge metrics
No merged PRs in 30d

Description

Hi,

Noticed some odd behaviour with reading/writing Dec128 data types. Just documenting in case this is an issue (and not me making a mistake).

I have some data (from SQL) in Dec128 format, which I write into an arrow table with:
Arrow.write("file.arrow", df)
![image](https://user-images.githubusercontent.com/67868703/126600713-4f8c2165-7193-4fda-b89c-7c287b0c6866.png)

When re-read with df2 = Arrow.Table("file.arrow") |> DataFrame(_)
![image](https://user-images.githubusercontent.com/67868703/126601020-41e5f1c7-4fc0-4c81-8fcc-1a06d6813102.png)
The data is read as float64 and scrambled.

And reading https://arrow.apache.org/docs/python/api/datatypes.html , I thought that Arrow is trying to support Dec128 types.

Hope you find that helpful.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Arrow.write("file.arrow", df) and Arrow.Table("file.arrow") entry points shown in the report, then reproduce the Dec128 round trip described. Done means Dec128 values are read back with the correct type and values instead of becoming scrambled float64 data.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.