@@ -429,13 +429,13 @@ async fn roundtrip_logical_plan_copy_to_sql_options() -> Result<()> {
429429 let input = create_csv_scan ( & ctx) . await ?;
430430 let file_type = format_as_file_type ( Arc :: new ( CsvFormatFactory :: new ( ) ) ) ;
431431
432- let plan = LogicalPlan :: Copy ( CopyTo {
433- input : Arc :: new ( input) ,
434- output_url : "test.csv" . to_string ( ) ,
435- partition_by : vec ! [ "a" . to_string( ) , "b" . to_string( ) , "c" . to_string( ) ] ,
432+ let plan = LogicalPlan :: Copy ( CopyTo :: new (
433+ Arc :: new ( input) ,
434+ "test.csv" . to_string ( ) ,
435+ vec ! [ "a" . to_string( ) , "b" . to_string( ) , "c" . to_string( ) ] ,
436436 file_type,
437- options : Default :: default ( ) ,
438- } ) ;
437+ Default :: default ( ) ,
438+ ) ) ;
439439
440440 let codec = CsvLogicalExtensionCodec { } ;
441441 let bytes = logical_plan_to_bytes_with_extension_codec ( & plan, & codec) ?;
@@ -469,13 +469,13 @@ async fn roundtrip_logical_plan_copy_to_writer_options() -> Result<()> {
469469 ParquetFormatFactory :: new_with_options ( parquet_format) ,
470470 ) ) ;
471471
472- let plan = LogicalPlan :: Copy ( CopyTo {
473- input : Arc :: new ( input) ,
474- output_url : "test.parquet" . to_string ( ) ,
472+ let plan = LogicalPlan :: Copy ( CopyTo :: new (
473+ Arc :: new ( input) ,
474+ "test.parquet" . to_string ( ) ,
475+ vec ! [ "a" . to_string( ) , "b" . to_string( ) , "c" . to_string( ) ] ,
475476 file_type,
476- partition_by : vec ! [ "a" . to_string( ) , "b" . to_string( ) , "c" . to_string( ) ] ,
477- options : Default :: default ( ) ,
478- } ) ;
477+ Default :: default ( ) ,
478+ ) ) ;
479479
480480 let codec = ParquetLogicalExtensionCodec { } ;
481481 let bytes = logical_plan_to_bytes_with_extension_codec ( & plan, & codec) ?;
@@ -501,13 +501,13 @@ async fn roundtrip_logical_plan_copy_to_arrow() -> Result<()> {
501501
502502 let file_type = format_as_file_type ( Arc :: new ( ArrowFormatFactory :: new ( ) ) ) ;
503503
504- let plan = LogicalPlan :: Copy ( CopyTo {
505- input : Arc :: new ( input) ,
506- output_url : "test.arrow" . to_string ( ) ,
507- partition_by : vec ! [ "a" . to_string( ) , "b" . to_string( ) , "c" . to_string( ) ] ,
504+ let plan = LogicalPlan :: Copy ( CopyTo :: new (
505+ Arc :: new ( input) ,
506+ "test.arrow" . to_string ( ) ,
507+ vec ! [ "a" . to_string( ) , "b" . to_string( ) , "c" . to_string( ) ] ,
508508 file_type,
509- options : Default :: default ( ) ,
510- } ) ;
509+ Default :: default ( ) ,
510+ ) ) ;
511511
512512 let codec = ArrowLogicalExtensionCodec { } ;
513513 let bytes = logical_plan_to_bytes_with_extension_codec ( & plan, & codec) ?;
@@ -548,13 +548,13 @@ async fn roundtrip_logical_plan_copy_to_csv() -> Result<()> {
548548 csv_format. clone ( ) ,
549549 ) ) ) ;
550550
551- let plan = LogicalPlan :: Copy ( CopyTo {
552- input : Arc :: new ( input) ,
553- output_url : "test.csv" . to_string ( ) ,
554- partition_by : vec ! [ "a" . to_string( ) , "b" . to_string( ) , "c" . to_string( ) ] ,
551+ let plan = LogicalPlan :: Copy ( CopyTo :: new (
552+ Arc :: new ( input) ,
553+ "test.csv" . to_string ( ) ,
554+ vec ! [ "a" . to_string( ) , "b" . to_string( ) , "c" . to_string( ) ] ,
555555 file_type,
556- options : Default :: default ( ) ,
557- } ) ;
556+ Default :: default ( ) ,
557+ ) ) ;
558558
559559 let codec = CsvLogicalExtensionCodec { } ;
560560 let bytes = logical_plan_to_bytes_with_extension_codec ( & plan, & codec) ?;
@@ -614,13 +614,13 @@ async fn roundtrip_logical_plan_copy_to_json() -> Result<()> {
614614 json_format. clone ( ) ,
615615 ) ) ) ;
616616
617- let plan = LogicalPlan :: Copy ( CopyTo {
618- input : Arc :: new ( input) ,
619- output_url : "test.json" . to_string ( ) ,
620- partition_by : vec ! [ "a" . to_string( ) , "b" . to_string( ) , "c" . to_string( ) ] ,
617+ let plan = LogicalPlan :: Copy ( CopyTo :: new (
618+ Arc :: new ( input) ,
619+ "test.json" . to_string ( ) ,
620+ vec ! [ "a" . to_string( ) , "b" . to_string( ) , "c" . to_string( ) ] ,
621621 file_type,
622- options : Default :: default ( ) ,
623- } ) ;
622+ Default :: default ( ) ,
623+ ) ) ;
624624
625625 // Assume JsonLogicalExtensionCodec is implemented similarly to CsvLogicalExtensionCodec
626626 let codec = JsonLogicalExtensionCodec { } ;
@@ -686,13 +686,13 @@ async fn roundtrip_logical_plan_copy_to_parquet() -> Result<()> {
686686 ParquetFormatFactory :: new_with_options ( parquet_format. clone ( ) ) ,
687687 ) ) ;
688688
689- let plan = LogicalPlan :: Copy ( CopyTo {
690- input : Arc :: new ( input) ,
691- output_url : "test.parquet" . to_string ( ) ,
692- partition_by : vec ! [ "a" . to_string( ) , "b" . to_string( ) , "c" . to_string( ) ] ,
689+ let plan = LogicalPlan :: Copy ( CopyTo :: new (
690+ Arc :: new ( input) ,
691+ "test.parquet" . to_string ( ) ,
692+ vec ! [ "a" . to_string( ) , "b" . to_string( ) , "c" . to_string( ) ] ,
693693 file_type,
694- options : Default :: default ( ) ,
695- } ) ;
694+ Default :: default ( ) ,
695+ ) ) ;
696696
697697 // Assume ParquetLogicalExtensionCodec is implemented similarly to JsonLogicalExtensionCodec
698698 let codec = ParquetLogicalExtensionCodec { } ;
0 commit comments