Skip to content

[Variant] variant_to_arrow union builder does not preserve variant_get conversion semantics #10905

Open

Description

@sdf-jkl

Here we use type-based info to determine which target the current variant should belong to. This seems incorrect

  1. Variant::Int64(1) can't convert to DataType::Int8, but this should valid when calling variant_get
  2. The logic in the current code (json -> variant, and variant spec), treats the exact number the same in Variant::Int64/Int32/Int16 etc(value has no strict type in variant) (like the Equivalence Class in parquet variant spec)

Originally posted by @klion26 in #10313 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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