Giter Site home page Giter Site logo

Comments (6)

quinnj avatar quinnj commented on June 26, 2024 2

Ok, fix is up: #465. I believe this has always been an issue. Kind of a gnarly one, but I think the solution proposed should be robust for structs.

from arrow-julia.

Moelf avatar Moelf commented on June 26, 2024

https://github.com/JuliaLang/julia/blob/c58e508fddba24a7508b3018aa7f413362b384ca/base/version.jl#L43-L44

technically this is indeed not fixed number of fields

from arrow-julia.

ericphanson avatar ericphanson commented on June 26, 2024

I'm not sure if that's the issue, as VersionNumber's alone work:

julia> struct C
       v::VersionNumber
       end

julia> table = [C(v"1")]
1-element Vector{C}:
 C(v"1.0.0")

julia> Arrow.tobuffer(table)
IOBuffer(data=UInt8[...], readable=true, writable=true, seekable=true, append=false, size=1144, maxsize=Inf, ptr=1, mark=-1)

and e.g. fieldcount(VersionNumber) works fine.

from arrow-julia.

quinnj avatar quinnj commented on June 26, 2024

Do we know if this used to work and regressed? Or perhaps just never worked?

from arrow-julia.

ericphanson avatar ericphanson commented on June 26, 2024

I’m not sure, I’ve definitely serialized VersionNumbers before, but maybe not with missing. This came up in a new application, it didn’t break a working one.

from arrow-julia.

quinnj avatar quinnj commented on June 26, 2024

Alternative fix is up: #466

from arrow-julia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.