@@ -15,6 +15,7 @@ async function main () {
1515 . option ( '-i, --iterations <number>' , 'Number of iterations' , '3' )
1616 . option ( '--files-per-task <number>' , 'Files per task' , '4' )
1717 . option ( '--cardinality-task-sf <number>' , 'Cardinality task scale factor' , '2' )
18+ . option ( '--shuffle-batch-size <number>' , 'Shuffle batch coalescing size (number of rows)' , '8192' )
1819 . option ( '--query <number>' , 'A specific query to run' , undefined )
1920 . parse ( process . argv ) ;
2021
@@ -24,6 +25,7 @@ async function main () {
2425 const iterations = parseInt ( options . iterations ) ;
2526 const filesPerTask = parseInt ( options . filesPerTask ) ;
2627 const cardinalityTaskSf = parseInt ( options . cardinalityTaskSf ) ;
28+ const shuffleBatchSize = parseInt ( options . shuffleBatchSize ) ;
2729
2830 // Compare with previous results first
2931 const results : BenchmarkResults = { queries : [ ] } ;
@@ -33,7 +35,8 @@ async function main () {
3335 await query ( createTablesSql ( sf ) )
3436 await query ( `
3537 SET distributed.files_per_task=${ filesPerTask } ;
36- SET distributed.cardinality_task_count_factor=${ cardinalityTaskSf }
38+ SET distributed.cardinality_task_count_factor=${ cardinalityTaskSf } ;
39+ SET distributed.shuffle_batch_size=${ shuffleBatchSize }
3740 ` )
3841
3942 for ( let id of IDS ) {
0 commit comments