File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,14 @@ pub struct Options {
270270 ) ]
271271 pub row_group_size : usize ,
272272
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+
273281 #[ arg(
274282 long = "compression-algo" ,
275283 env = "P_PARQUET_COMPRESSION_ALGO" ,
Original file line number Diff line number Diff line change @@ -111,7 +111,9 @@ impl Query {
111111 let mut config = SessionConfig :: default ( )
112112 . with_parquet_pruning ( true )
113113 . with_prefer_existing_sort ( true )
114- . with_batch_size ( 1000000 ) ;
114+ //batch size has been made configurable via environment variable
115+ //default value is 20000
116+ . with_batch_size ( PARSEABLE . options . execution_batch_size ) ;
115117
116118 // Pushdown filters allows DF to push the filters as far down in the plan as possible
117119 // and thus, reducing the number of rows decoded
You can’t perform that action at this time.
0 commit comments