Skip to content

INT128_MIN write error #1151

@belous-dp

Description

@belous-dp

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+).(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions