@@ -27,7 +27,6 @@ use common_base::runtime::TrySpawn;
27
27
use common_config:: Config ;
28
28
use common_exception:: ErrorCode ;
29
29
use common_exception:: Result ;
30
- use common_meta_types:: FileFormatOptions ;
31
30
use common_meta_types:: UserSetting ;
32
31
use common_meta_types:: UserSettingValue ;
33
32
use common_users:: UserApiProvider ;
@@ -492,38 +491,6 @@ impl Settings {
492
491
} ) )
493
492
}
494
493
495
- pub fn set_file_format_options ( & self , opts : & FileFormatOptions ) -> Result < ( ) > {
496
- // hack here for associate args in streaming load with file_format_option in copy into.
497
- // format_skip_header -> skip_header
498
- // format_compression -> compression
499
- // format_field_delimiter -> field_delimiter
500
- // format_record_delimiter -> record_delimiter
501
- // format_quote -> escape
502
- self . set_settings (
503
- "format_skip_header" . to_string ( ) ,
504
- opts. skip_header . to_string ( ) ,
505
- false ,
506
- ) ?;
507
- self . set_settings (
508
- "format_compression" . to_string ( ) ,
509
- opts. compression . to_string ( ) ,
510
- false ,
511
- ) ?;
512
- self . set_settings (
513
- "format_field_delimiter" . to_string ( ) ,
514
- opts. field_delimiter . clone ( ) ,
515
- false ,
516
- ) ?;
517
- self . set_settings (
518
- "format_record_delimiter" . to_string ( ) ,
519
- opts. record_delimiter . clone ( ) ,
520
- false ,
521
- ) ?;
522
- self . set_settings ( "format_quote" . to_string ( ) , opts. escape . clone ( ) , false ) ?;
523
-
524
- Ok ( ( ) )
525
- }
526
-
527
494
// Get max_block_size.
528
495
pub fn get_max_block_size ( & self ) -> Result < u64 > {
529
496
let key = "max_block_size" ;
0 commit comments