File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -476,6 +476,27 @@ fn criterion_benchmark(c: &mut Criterion) {
476476 } ) ;
477477 } ) ;
478478
479+ c. bench_function ( "physical_window_function_partition_by_8_on_values" , |b| {
480+ let partitioning_columns = 8 ;
481+ let source = format ! (
482+ "SELECT 1 AS n{}" ,
483+ ( 0 ..partitioning_columns)
484+ . map( |i| format!( ", {i} AS c{i}" ) )
485+ . collect:: <String >( )
486+ ) ;
487+ let window = format ! (
488+ "SUM(n) OVER (PARTITION BY {}) AS sum_n" ,
489+ ( 0 ..partitioning_columns)
490+ . map( |i| format!( "c{i}" ) )
491+ . collect:: <Vec <_>>( )
492+ . join( ", " )
493+ ) ;
494+ let query = format ! ( "SELECT {window} FROM ({source})" ) ;
495+ b. iter ( || {
496+ physical_plan ( & ctx, & rt, & query) ;
497+ } ) ;
498+ } ) ;
499+
479500 // Benchmark for Physical Planning Joins
480501 c. bench_function ( "physical_join_consider_sort" , |b| {
481502 b. iter ( || {
You can’t perform that action at this time.
0 commit comments