Skip to content

[python] Support VARIANT type in pypaimon#7635

Open
chenghuichen wants to merge 7 commits intoapache:masterfrom
chenghuichen:python-variant
Open

[python] Support VARIANT type in pypaimon#7635
chenghuichen wants to merge 7 commits intoapache:masterfrom
chenghuichen:python-variant

Conversation

@chenghuichen
Copy link
Copy Markdown
Contributor

@chenghuichen chenghuichen commented Apr 13, 2026

Purpose

Background: #7655

This PR adds VARIANT read/write support to pypaimon, with a particular focus on shredded VARIANT.

  • Write: when variant.shreddingSchema is configured on a table, VARIANT columns are written in shredded Parquet format according to the schema.
  • Read: shredded VARIANT columns are automatically reassembled back into standard struct<value: binary, metadata: binary> form, transparent to the caller.

Shredded column pruning and predicate pushdown will be built on top of this PR.

Tests

  • Unit tests
    • pypaimon/tests/variant_test.py
  • E2E tests
    • run_java_variant_write_py_read_test
    • run_py_variant_write_java_read_test

@chenghuichen chenghuichen changed the title [python] Support VARIANT type in pypaimon [WIP][python] Support VARIANT type in pypaimon Apr 14, 2026
@chenghuichen chenghuichen changed the title [WIP][python] Support VARIANT type in pypaimon [python] Support VARIANT type in pypaimon Apr 15, 2026
@chenghuichen
Copy link
Copy Markdown
Contributor Author

The PR is ready for review now.

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

Successfully merging this pull request may close these issues.

1 participant