Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INT128_MIN write error #1151

Open
belous-dp opened this issue Dec 18, 2024 · 1 comment · May be fixed by #1152
Open

INT128_MIN write error #1151

belous-dp opened this issue Dec 18, 2024 · 1 comment · May be fixed by #1152

Comments

@belous-dp
Copy link

Writing INT128_MIN produces -/)0/,//(-,*0,*'.-/)-/*()-0-)/+((,/0+).( instead of valid output. Logs:

julia> df = DataFrame(a = Int128[])
0×1 DataFrame
 Row │ a      
     │ Int128 
─────┴────────

julia> push!(df, [Int128(-170141183460469231731687303715884105728)])
1×1 DataFrame
 Row │ a                                 
     │ Int128                            
─────┼───────────────────────────────────
   1-1701411834604692317316873037158

julia> CSV.write("a.csv", df)
"a.csv"

julia> CSV.read("a.csv", DataFrame)
┌ Warning: thread = 1 warning: parsed expected 1 columns, but didn't reach end of line around data row: 1. Parsing extra columns and widening final columnset
└ @ CSV ~/.julia/packages/CSV/XLcqT/src/file.jl:593
1×5 DataFrame
 Row │ a        Column2  Column3  Column4              Column5 
     │ String7  String7  String3  String31             String7 
─────┼─────────────────────────────────────────────────────────
   1-/)0/    //(-     *0       *'.-/)-/*()-0-)/+((  /0+).(
@belous-dp belous-dp linked a pull request Dec 18, 2024 that will close this issue
@belous-dp
Copy link
Author

UPD: i've created a PR containing the fix

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

Successfully merging a pull request may close this issue.

1 participant