[SPARK-55617] Add VariantGet to V2ExpressionBuilder for DSv2 filter pushdown#54394
Open
qlong wants to merge 1 commit intoapache:masterfrom
Open
[SPARK-55617] Add VariantGet to V2ExpressionBuilder for DSv2 filter pushdown#54394qlong wants to merge 1 commit intoapache:masterfrom
qlong wants to merge 1 commit intoapache:masterfrom
Conversation
…ushdown Add a VariantGet case in V2ExpressionBuilder.generateExpression() so that variant_get and try_variant_get predicates can be translated into V2 UserDefinedScalarFunc and pushed down to connectors via SupportsPushDownV2Filters. This is to support file-level skipping for shredded variant columns in Iceberg. Only foldable paths and direct table column references for the variant column are supported.
qlong
added a commit
to qlong/iceberg
that referenced
this pull request
Feb 20, 2026
- SparkV2Filters: Convert variant_get/try_variant_get to Expressions.extract() - Spark3Util.describe: Output extract terms as variant_get() for EXPLAIN - Add tests for both Depends on Spark PR: apache/spark#54394
Author
|
This is the PR on the iceberg side for variant filter pushdown for file skipping. apache/iceberg#15385 |
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.
Add a VariantGet case in V2ExpressionBuilder.generateExpression() so that variant_get and try_variant_get predicates can be translated into V2 UserDefinedScalarFunc and pushed down to connectors via SupportsPushDownV2Filters.
This is to support file-level skipping for shredded variant columns in Iceberg. Only foldable paths and direct table column references for the variant column are supported.
What changes were proposed in this pull request?
Add a VariantGet case in V2ExpressionBuilder.generateExpression() so that variant_get and try_variant_get predicates can be translated into V2 UserDefinedScalarFunc and pushed down to connectors via SupportsPushDownV2Filters.
Jira: https://issues.apache.org/jira/browse/SPARK-55617
Why are the changes needed?
This is to support file-level skipping for shredded variant columns in Iceberg. Only foldable paths and direct table column references for the variant column are supported.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Added unit tests.
Was this patch authored or co-authored using generative AI tooling?
Co-authored with Claude Sonnet.