-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[VL] Fix filter push down on short column (#4221)
Currently when there is a filter on short column it doesn't get pushed to Velox and the whole scan is executed in vanilla spark. Ex: create table abc (a short, b int) using parquet select * from abc where a = 1 This PR address this issue so we can have scan now in Velox. Needed additional changes as there was bug with edge case on short filter like a > -32768 which could not filter the value -32768 (Fixes: #4222) Prev plan for above query: VeloxColumnarToRowExec +- ^(1) FilterExecTransformer (isnotnull(a#120) AND (a#120 = 1)), false +- RowToVeloxColumnar +- *(1) ColumnarToRow +- FileScan parquet default.abc[a#120,b#121] Batched: true, DataFilters: [isnotnull(a#120), (a#120 = 1)], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/home/kapil/dev/src/Gluten/gluten-ut/spark33/target/scala-2.12/te..., PartitionFilters: [], PushedFilters: [IsNotNull(a), EqualTo(a,1)], ReadSchema: struct<a:smallint,b:int> New Plan VeloxColumnarToRowExec +- ^(1) FilterExecTransformer (isnotnull(a#120) AND (a#120 = 1)), false +- ^(1) NativeFileNativeScan parquet default.abc[a#120,b#121] Batched: true, DataFilters: [isnotnull(a#120), (a#120 = 1)],
- Loading branch information
Showing
4 changed files
with
90 additions
and
10 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
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