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

Open Variant Type for semi-structured data #10987

Open
wjones127 opened this issue Jun 18, 2024 · 2 comments
Open

Open Variant Type for semi-structured data #10987

wjones127 opened this issue Jun 18, 2024 · 2 comments
Assignees

Comments

@wjones127
Copy link
Member

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

@wjones127 wjones127 self-assigned this Jun 18, 2024
@alamb
Copy link
Contributor

alamb commented Jun 18, 2024

@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 🚀

@samuelcolvin
Copy link
Contributor

Interesting, this is exactly what we need.

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

No branches or pull requests

3 participants