File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,14 @@ pub struct Options {
270
270
) ]
271
271
pub row_group_size : usize ,
272
272
273
+ #[ arg(
274
+ long,
275
+ env = "P_EXECUTION_BATCH_SIZE" ,
276
+ default_value = "20000" ,
277
+ help = "batch size for query execution"
278
+ ) ]
279
+ pub execution_batch_size : usize ,
280
+
273
281
#[ arg(
274
282
long = "compression-algo" ,
275
283
env = "P_PARQUET_COMPRESSION_ALGO" ,
Original file line number Diff line number Diff line change @@ -111,7 +111,9 @@ impl Query {
111
111
let mut config = SessionConfig :: default ( )
112
112
. with_parquet_pruning ( true )
113
113
. with_prefer_existing_sort ( true )
114
- . with_batch_size ( 20000 ) ;
114
+ //batch size has been made configurable via environment variable
115
+ //default value is 20000
116
+ . with_batch_size ( PARSEABLE . options . execution_batch_size ) ;
115
117
116
118
// Pushdown filters allows DF to push the filters as far down in the plan as possible
117
119
// and thus, reducing the number of rows decoded
You can’t perform that action at this time.
0 commit comments