Skip to content

Commit c8bda4a

Browse files
committed
Enable parquet page level skipping (page index pruning) by default
1 parent 26e1b20 commit c8bda4a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

datafusion/common/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ config_namespace! {
227227
pub struct ParquetOptions {
228228
/// If true, uses parquet data page level metadata (Page Index) statistics
229229
/// to reduce the number of rows decoded.
230-
pub enable_page_index: bool, default = false
230+
pub enable_page_index: bool, default = true
231231

232232
/// If true, the parquet reader attempts to skip entire row groups based
233233
/// on the predicate in the query and the metadata (min/max values) stored in

datafusion/core/tests/sqllogictests/test_files/information_schema.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ datafusion.catalog.location NULL
139139
datafusion.execution.batch_size 8192
140140
datafusion.execution.coalesce_batches true
141141
datafusion.execution.collect_statistics false
142-
datafusion.execution.parquet.enable_page_index false
142+
datafusion.execution.parquet.enable_page_index true
143143
datafusion.execution.parquet.metadata_size_hint NULL
144144
datafusion.execution.parquet.pruning true
145145
datafusion.execution.parquet.pushdown_filters false

docs/source/user-guide/configs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Environment variables are read during `SessionConfig` initialisation so they mus
4949
| datafusion.execution.collect_statistics | false | Should DataFusion collect statistics after listing files |
5050
| datafusion.execution.target_partitions | 0 | Number of partitions for query execution. Increasing partitions can increase concurrency. Defaults to the number of CPU cores on the system |
5151
| datafusion.execution.time_zone | +00:00 | The default time zone Some functions, e.g. `EXTRACT(HOUR from SOME_TIME)`, shift the underlying datetime according to this time zone, and then extract the hour |
52-
| datafusion.execution.parquet.enable_page_index | false | If true, uses parquet data page level metadata (Page Index) statistics to reduce the number of rows decoded. |
52+
| datafusion.execution.parquet.enable_page_index | true | If true, uses parquet data page level metadata (Page Index) statistics to reduce the number of rows decoded. |
5353
| datafusion.execution.parquet.pruning | true | If true, the parquet reader attempts to skip entire row groups based on the predicate in the query and the metadata (min/max values) stored in the parquet file |
5454
| datafusion.execution.parquet.skip_metadata | true | If true, the parquet reader skip the optional embedded metadata that may be in the file Schema. This setting can help avoid schema conflicts when querying multiple parquet files with schemas containing compatible types but different metadata |
5555
| datafusion.execution.parquet.metadata_size_hint | NULL | If specified, the parquet reader will try and fetch the last `size_hint` bytes of the parquet file optimistically. If not specified, two reads are required: One read to fetch the 8-byte parquet footer and another to fetch the metadata length encoded in the footer |

0 commit comments

Comments
 (0)