@@ -359,6 +359,7 @@ fn roundtrip_udwf() -> Result<()> {
359359 PhysicalSortExpr :: new ( col ( "b" , & schema) ?, SortOptions :: new ( true , true ) )
360360 ] ,
361361 Arc :: new ( WindowFrame :: new ( None ) ) ,
362+ Arc :: clone ( & schema) ,
362363 ) ) ;
363364
364365 let input = Arc :: new ( EmptyExec :: new ( schema. clone ( ) ) ) ;
@@ -402,6 +403,7 @@ fn roundtrip_window() -> Result<()> {
402403 } ,
403404 } ] ,
404405 Arc :: new ( window_frame) ,
406+ Arc :: clone ( & schema) ,
405407 ) ) ;
406408
407409 let plain_aggr_window_expr = Arc :: new ( PlainAggregateWindowExpr :: new (
@@ -417,6 +419,7 @@ fn roundtrip_window() -> Result<()> {
417419 & [ ] ,
418420 Arc :: new ( WindowFrame :: new ( None ) ) ,
419421 None ,
422+ Arc :: clone ( & schema) ,
420423 ) ) ;
421424
422425 let window_frame = WindowFrame :: new_bounds (
@@ -438,6 +441,7 @@ fn roundtrip_window() -> Result<()> {
438441 & [ ] ,
439442 Arc :: new ( window_frame) ,
440443 None ,
444+ Arc :: clone ( & schema) ,
441445 ) ) ;
442446
443447 let input = Arc :: new ( EmptyExec :: new ( schema. clone ( ) ) ) ;
@@ -467,6 +471,7 @@ fn roundtrip_window_distinct() -> Result<()> {
467471 & [ ] , // no order by
468472 Arc :: new ( WindowFrame :: new ( None ) ) , // unbounded frame
469473 None ,
474+ Arc :: clone ( & schema) ,
470475 ) ) ;
471476
472477 // Create a distinct sum window expression with bounded frame (becomes SlidingAggregateWindowExpr)
@@ -491,6 +496,7 @@ fn roundtrip_window_distinct() -> Result<()> {
491496 & [ ] , // no order by
492497 Arc :: new ( bounded_frame) , // bounded frame
493498 None ,
499+ Arc :: clone ( & schema) ,
494500 ) ) ;
495501
496502 let input = Arc :: new ( EmptyExec :: new ( schema. clone ( ) ) ) ;
@@ -523,6 +529,7 @@ fn test_distinct_window_serialization_end_to_end() -> Result<()> {
523529 & [ ] ,
524530 Arc :: new ( WindowFrame :: new ( None ) ) ,
525531 None ,
532+ Arc :: clone ( & schema) ,
526533 ) ) ;
527534
528535 // Test 2: DISTINCT SUM (without ignore nulls)
@@ -546,6 +553,7 @@ fn test_distinct_window_serialization_end_to_end() -> Result<()> {
546553 & [ ] ,
547554 Arc :: new ( bounded_frame) ,
548555 None ,
556+ Arc :: clone ( & schema) ,
549557 ) ) ;
550558
551559 let input = Arc :: new ( EmptyExec :: new ( schema. clone ( ) ) ) ;
@@ -1384,6 +1392,7 @@ fn roundtrip_scalar_udf_extension_codec() -> Result<()> {
13841392 & [ ] ,
13851393 Arc :: new( WindowFrame :: new( None ) ) ,
13861394 None ,
1395+ Arc :: clone( & schema) ,
13871396 ) ) ] ,
13881397 filter,
13891398 true ,
@@ -1436,6 +1445,7 @@ fn roundtrip_udwf_extension_codec() -> Result<()> {
14361445 } ,
14371446 } ] ,
14381447 Arc :: new ( window_frame) ,
1448+ Arc :: clone ( & schema) ,
14391449 ) ) ;
14401450
14411451 let input = Arc :: new ( EmptyExec :: new ( schema. clone ( ) ) ) ;
@@ -1496,6 +1506,7 @@ fn roundtrip_aggregate_udf_extension_codec() -> Result<()> {
14961506 & [ ] ,
14971507 Arc :: new( WindowFrame :: new( None ) ) ,
14981508 None ,
1509+ Arc :: clone( & schema) ,
14991510 ) ) ] ,
15001511 filter,
15011512 true ,
@@ -3185,6 +3196,7 @@ fn roundtrip_lead_with_default_value() -> Result<()> {
31853196 } ,
31863197 } ] ,
31873198 Arc :: new ( WindowFrame :: new ( None ) ) ,
3199+ Arc :: clone ( & schema) ,
31883200 ) ) ;
31893201
31903202 let input = Arc :: new ( EmptyExec :: new ( schema. clone ( ) ) ) ;
0 commit comments