-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Spark] Support predicate pushdown in scans with DVs (#2933)
## Description Currently, when Deletion Vectors are enabled we disable predicate pushdown and splitting in scans. This is because we rely on a custom row index column which is constructed in the executors and cannot not handle splits and predicates. These restrictions can now be lifted by relying instead on `metadata.row_index` which was exposed recently after relevant [work](https://issues.apache.org/jira/browse/SPARK-37980) was concluded. Overall, this PR adds predicate pushdown and splits support as follows: 1. Replaces `__delta_internal_is_row_deleted` with `_metadata.row_index`. 2. Adds a new implementation of `__delta_internal_is_row_deleted` that is based on `_metadata.row_index`. 3. `IsRowDeleted` filter is now non deterministic to allow predicate pushdown. Furthermore, it includes previous relevant [work](#2576) to remove the UDF from `IsRowDeleted` filter. ## How was this patch tested? Added new suites.
- Loading branch information
1 parent
78970ab
commit f4a4944
Showing
15 changed files
with
759 additions
and
173 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.