Skip to content

Open Variant Type for semi-structured data #10987

Description

@wjones127

I've been starting to experiment with implementing the Open Variant Type 1 in Rust / DataFusion. There is a specification and Java library for this, and Spark will release this type in 4.0. There are also plans to integrate this into table formats such as Delta Lake 2 and Iceberg 3. This would be a high-performance data type for semi-structured data, designed for better OLAP performance than JSON or BSON (discussed in #7845). I've discussed a little bit in the Arrow repo about it's potential as an Arrow extension type 4.

I'm working on creating an extension similar to datafusion-functions-json. If we could create a new repo datafusion-functions-variant, I'd be happy to develop that in the open.

Footnotes

  1. https://github.com/apache/spark/tree/master/common/variant ↩

  2. https://www.databricks.com/blog/introducing-open-variant-data-type-delta-lake-and-apache-spark ↩

  3. https://lists.apache.org/thread/xnyo1k66dxh0ffpg7j9f04xgos0kwc34 ↩

  4. https://github.com/apache/arrow/issues/42069 ↩

Activity

  1. self-assigned this
    on Jun 18, 2024
  2. alamb commented on Jun 18, 2024

    @alamb
    Contributor

    @samuelcolvin and @adriangb and I were speaking about datafusion-functions-json just today. They may be interested too

    I have created https://github.com/datafusion-contrib/datafusion-functions-variant and added you as an admin 🚀

  3. samuelcolvin commented on Jun 18, 2024

    @samuelcolvin
    Contributor

    Interesting, this is exactly what we need.

  4. alamb commented on Apr 28, 2025

    @alamb
    Contributor

    FWIW the variant type has been added to the parquet spec, and is now much closer to standardization and we are beginning work on the support at the parquet layer. See epic

  5. ianmcook commented on May 20, 2025

    @ianmcook
    Member

    There's a discussion happening on the Arrow dev mailing list about adding Variant as a canonical extension type in the Arrow spec. Input from the DataFusion developer community would be much appreciated.

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

Metadata

Metadata

Assignees

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