-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for reading orc column statistics (#6588)
Summary: Currently, the dwrf module only supports reading the column statistics of dwrf format, and does not support reading the column statistics of orc format. When I use velox to read the orc table, the following exception occurs: ``` presto:tpch_velox> create table region_orc with(format = 'ORC') as select * from tpch.sf10.region; CREATE TABLE: 5 rows Query 20230804_032253_00003_tubug, FINISHED, 1 node Splits: 22 total, 22 done (100.00%) 0:35 [5 rows, 0B] [0 rows/s, 0B/s] presto:tpch_velox> select * from region_orc; Query 20230804_043524_00023_m8qw7, FAILED, 1 node Splits: 2 total, 0 done (0.00%) 0:40 [0 rows, 0B] [0 rows/s, 0B/s] Query 20230804_043524_00023_m8qw7 failed: Operator::getOutput failed for [operator: TableScan, plan node ID: 0]: vector ``` with this pr, we support read orc column statistics, than we can read orc data through velox: ``` presto:tpch_velox> select * from region_orc; regionkey | name | comment -----------+-------------+--------------------------------------------------------------------------------------------------------------------- 0 | AFRICA | lar deposits. blithely final packages cajole. regular waters are final requests. regular accounts are according to 1 | AMERICA | hs use ironic, even requests. s 2 | ASIA | ges. thinly even pinto beans ca 3 | EUROPE | ly final courts cajole furiously final excuse 4 | MIDDLE EAST | uickly special accounts cajole carefully blithely close requests. carefully final asymptotes haggle furiousl (5 rows) Query 20230804_044016_00026_m8qw7, FINISHED, 1 node Splits: 2 total, 2 done (100.00%) 0:14 [5 rows, 603B] [0 rows/s, 44B/s] presto:tpch_velox> ``` CC: Yuhta Pull Request resolved: #6588 Reviewed By: Yuhta Differential Revision: D58370230 Pulled By: kevinwilfong fbshipit-source-id: 6957726497768533b56881eba18481c4c0472a24
- Loading branch information
1 parent
39743cd
commit 0c0a973
Showing
14 changed files
with
2,054 additions
and
1,192 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
Oops, something went wrong.