Site: Add blog post introducing the Variant type - #17537
Open
nssalian wants to merge 3 commits into
Open
Conversation
nssalian
marked this pull request as ready for review
August 6, 2026 16:02
Collaborator
Author
|
The PR check re-ran and failed while Github was having issues. A re-run should fix it. |
Guosmilesmile
left a comment
Contributor
There was a problem hiding this comment.
Overall, LGTM. I've left a few minor comments. Thanks for providing the blog!
|
|
||
| Binary encodings such as BSON store values in binary form, but they still repeat every field name (`"timestamp"`, `"user"`, `"event"`) in every row. | ||
|
|
||
| Variant is as flexible as JSON but stores data in a compact, typed binary form. Values keep their native types: a timestamp stays a timestamp and a decimal keeps its precision, instead of collapsing to JSON's strings and numbers. Field names are stored once in binary, so there is none of the per-row string overhead of JSON or BSON. No schema is declared up front, so documents of different shapes coexist in one column and a new field needs no migration. |
Contributor
There was a problem hiding this comment.
No schema is declared up front -> No schema is declared up front for the contents of the Variant column ?
Collaborator
Author
There was a problem hiding this comment.
Seems redundant to me, I'm ok with it how it is.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intro blog post on the Variant type in Apache Iceberg: what it is, why it exists, how it's stored, and how to use it from Spark SQL. First in a series; shredding is the follow-up. Put 08/10/2026 as the date to give time for reviews can adjust as needed.
Here's how it renders with mkdocs locally:
