@@ -60,6 +60,16 @@ pub const OPT_PARQUET_REORDER_FILTERS: &str =
60
60
pub const OPT_PARQUET_ENABLE_PAGE_INDEX : & str =
61
61
"datafusion.execution.parquet.enable_page_index" ;
62
62
63
+ /// Configuration option "datafusion.execution.parquet.pruning"
64
+ pub const OPT_PARQUET_ENABLE_PRUNING : & str = "datafusion.execution.parquet.pruning" ;
65
+
66
+ /// Configuration option "datafusion.execution.parquet.skip_metadata"
67
+ pub const OPT_PARQUET_SKIP_METADATA : & str = "datafusion.execution.parquet.skip_metadata" ;
68
+
69
+ /// Configuration option "datafusion.execution.parquet.metadata_size_hint"
70
+ pub const OPT_PARQUET_METADATA_SIZE_HINT : & str =
71
+ "datafusion.execution.parquet.metadata_size_hint" ;
72
+
63
73
/// Configuration option "datafusion.optimizer.skip_failed_rules"
64
74
pub const OPT_OPTIMIZER_SKIP_FAILED_RULES : & str =
65
75
"datafusion.optimizer.skip_failed_rules" ;
@@ -234,6 +244,28 @@ impl BuiltInConfigs {
234
244
to reduce the number of rows decoded.",
235
245
false ,
236
246
) ,
247
+ ConfigDefinition :: new_bool(
248
+ OPT_PARQUET_ENABLE_PRUNING ,
249
+ "If true, the parquet reader attempts to skip entire row groups based \
250
+ on the predicate in the query.",
251
+ true ,
252
+ ) ,
253
+ ConfigDefinition :: new_bool(
254
+ OPT_PARQUET_SKIP_METADATA ,
255
+ "If true, the parquet reader skip the optional embedded metadata that may be in \
256
+ the file Schema. This setting can help avoid schema conflicts when querying \
257
+ multiple parquet files with schemas containing compatible types but different metadata.",
258
+ true ,
259
+ ) ,
260
+ ConfigDefinition :: new(
261
+ OPT_PARQUET_METADATA_SIZE_HINT ,
262
+ "If specified, the parquet reader will try and fetch the last `size_hint` \
263
+ bytes of the parquet file optimistically. If not specified, two read are required: \
264
+ One read to fetch the 8-byte parquet footer and \
265
+ another to fetch the metadata length encoded in the footer.",
266
+ DataType :: Boolean ,
267
+ ScalarValue :: Boolean ( None ) ,
268
+ ) ,
237
269
ConfigDefinition :: new_bool(
238
270
OPT_OPTIMIZER_SKIP_FAILED_RULES ,
239
271
"When set to true, the logical plan optimizer will produce warning \
0 commit comments