@@ -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 ( ) ) ) ;
@@ -1371,6 +1379,7 @@ fn roundtrip_scalar_udf_extension_codec() -> Result<()> {
13711379 & [ ] ,
13721380 Arc :: new( WindowFrame :: new( None ) ) ,
13731381 None ,
1382+ Arc :: clone( & schema) ,
13741383 ) ) ] ,
13751384 filter,
13761385 true ,
@@ -1423,6 +1432,7 @@ fn roundtrip_udwf_extension_codec() -> Result<()> {
14231432 } ,
14241433 } ] ,
14251434 Arc :: new ( window_frame) ,
1435+ Arc :: clone ( & schema) ,
14261436 ) ) ;
14271437
14281438 let input = Arc :: new ( EmptyExec :: new ( schema. clone ( ) ) ) ;
@@ -1483,6 +1493,7 @@ fn roundtrip_aggregate_udf_extension_codec() -> Result<()> {
14831493 & [ ] ,
14841494 Arc :: new( WindowFrame :: new( None ) ) ,
14851495 None ,
1496+ Arc :: clone( & schema) ,
14861497 ) ) ] ,
14871498 filter,
14881499 true ,
@@ -3143,6 +3154,7 @@ fn roundtrip_lead_with_default_value() -> Result<()> {
31433154 } ,
31443155 } ] ,
31453156 Arc :: new ( WindowFrame :: new ( None ) ) ,
3157+ Arc :: clone ( & schema) ,
31463158 ) ) ;
31473159
31483160 let input = Arc :: new ( EmptyExec :: new ( schema. clone ( ) ) ) ;
0 commit comments