File tree 2 files changed +7
-11
lines changed
physical_plan/file_format
2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -240,20 +240,20 @@ impl BuiltInConfigs {
240
240
OPT_PARQUET_PUSHDOWN_FILTERS ,
241
241
"If true, filter expressions are be applied during the parquet decoding operation to \
242
242
reduce the number of rows decoded.",
243
- false ,
243
+ true ,
244
244
) ,
245
245
ConfigDefinition :: new_bool(
246
246
OPT_PARQUET_REORDER_FILTERS ,
247
247
"If true, filter expressions evaluated during the parquet decoding opearation \
248
248
will be reordered heuristically to minimize the cost of evaluation. If false, \
249
249
the filters are applied in the same order as written in the query.",
250
- false ,
250
+ true ,
251
251
) ,
252
252
ConfigDefinition :: new_bool(
253
253
OPT_PARQUET_ENABLE_PAGE_INDEX ,
254
254
"If true, uses parquet data page level metadata (Page Index) statistics \
255
255
to reduce the number of rows decoded.",
256
- false ,
256
+ true ,
257
257
) ,
258
258
ConfigDefinition :: new_bool(
259
259
OPT_OPTIMIZER_SKIP_FAILED_RULES ,
Original file line number Diff line number Diff line change @@ -803,7 +803,7 @@ mod tests {
803
803
let file_groups = meta. into_iter ( ) . map ( Into :: into) . collect ( ) ;
804
804
805
805
// prepare the scan
806
- let mut parquet_exec = ParquetExec :: new (
806
+ let parquet_exec = ParquetExec :: new (
807
807
FileScanConfig {
808
808
object_store_url : ObjectStoreUrl :: local_filesystem ( ) ,
809
809
file_groups : vec ! [ file_groups] ,
@@ -817,13 +817,9 @@ mod tests {
817
817
} ,
818
818
predicate,
819
819
None ,
820
- ) ;
821
-
822
- if pushdown_predicate {
823
- parquet_exec = parquet_exec
824
- . with_pushdown_filters ( true )
825
- . with_reorder_filters ( true ) ;
826
- }
820
+ )
821
+ . with_pushdown_filters ( pushdown_predicate)
822
+ . with_reorder_filters ( pushdown_predicate) ;
827
823
828
824
if page_index_predicate {
829
825
parquet_exec = parquet_exec. with_enable_page_index ( true ) ;
You can’t perform that action at this time.
0 commit comments