@@ -645,7 +645,7 @@ impl DistributedExt for SessionConfig {
645645 & mut self ,
646646 bytes_per_partition : usize ,
647647 ) -> Result < ( ) , DataFusionError > {
648- let d_cfg = DistributedConfig :: from_session_config_mut ( self ) ?;
648+ let d_cfg = DistributedConfig :: from_config_options_mut ( self . options_mut ( ) ) ?;
649649 d_cfg. file_scan_config_bytes_per_partition = bytes_per_partition;
650650 Ok ( ( ) )
651651 }
@@ -654,13 +654,13 @@ impl DistributedExt for SessionConfig {
654654 & mut self ,
655655 factor : f64 ,
656656 ) -> Result < ( ) , DataFusionError > {
657- let d_cfg = DistributedConfig :: from_session_config_mut ( self ) ?;
657+ let d_cfg = DistributedConfig :: from_config_options_mut ( self . options_mut ( ) ) ?;
658658 d_cfg. cardinality_task_count_factor = factor;
659659 Ok ( ( ) )
660660 }
661661
662662 fn set_distributed_metrics_collection ( & mut self , enabled : bool ) -> Result < ( ) , DataFusionError > {
663- let d_cfg = DistributedConfig :: from_session_config_mut ( self ) ?;
663+ let d_cfg = DistributedConfig :: from_config_options_mut ( self . options_mut ( ) ) ?;
664664 d_cfg. collect_metrics = enabled;
665665 Ok ( ( ) )
666666 }
@@ -669,13 +669,13 @@ impl DistributedExt for SessionConfig {
669669 & mut self ,
670670 enabled : bool ,
671671 ) -> Result < ( ) , DataFusionError > {
672- let d_cfg = DistributedConfig :: from_session_config_mut ( self ) ?;
672+ let d_cfg = DistributedConfig :: from_config_options_mut ( self . options_mut ( ) ) ?;
673673 d_cfg. children_isolator_unions = enabled;
674674 Ok ( ( ) )
675675 }
676676
677677 fn set_distributed_broadcast_joins ( & mut self , enabled : bool ) -> Result < ( ) , DataFusionError > {
678- let d_cfg = DistributedConfig :: from_session_config_mut ( self ) ?;
678+ let d_cfg = DistributedConfig :: from_config_options_mut ( self . options_mut ( ) ) ?;
679679 d_cfg. broadcast_joins = enabled;
680680 Ok ( ( ) )
681681 }
@@ -685,7 +685,7 @@ impl DistributedExt for SessionConfig {
685685 & mut self ,
686686 compression : Option < arrow_ipc:: CompressionType > ,
687687 ) -> Result < ( ) , DataFusionError > {
688- let d_cfg = DistributedConfig :: from_session_config_mut ( self ) ?;
688+ let d_cfg = DistributedConfig :: from_config_options_mut ( self . options_mut ( ) ) ?;
689689 d_cfg. compression = match compression {
690690 Some ( arrow_ipc:: CompressionType :: ZSTD ) => "zstd" . to_string ( ) ,
691691 Some ( arrow_ipc:: CompressionType :: LZ4_FRAME ) => "lz4" . to_string ( ) ,
@@ -698,7 +698,7 @@ impl DistributedExt for SessionConfig {
698698 & mut self ,
699699 batch_size : usize ,
700700 ) -> Result < ( ) , DataFusionError > {
701- let d_cfg = DistributedConfig :: from_session_config_mut ( self ) ?;
701+ let d_cfg = DistributedConfig :: from_config_options_mut ( self . options_mut ( ) ) ?;
702702 d_cfg. shuffle_batch_size = batch_size;
703703 Ok ( ( ) )
704704 }
@@ -714,13 +714,13 @@ impl DistributedExt for SessionConfig {
714714 & mut self ,
715715 max_tasks_per_stage : usize ,
716716 ) -> Result < ( ) , DataFusionError > {
717- let d_cfg = DistributedConfig :: from_session_config_mut ( self ) ?;
717+ let d_cfg = DistributedConfig :: from_config_options_mut ( self . options_mut ( ) ) ?;
718718 d_cfg. max_tasks_per_stage = max_tasks_per_stage;
719719 Ok ( ( ) )
720720 }
721721
722722 fn set_distributed_partial_reduce ( & mut self , enabled : bool ) -> Result < ( ) , DataFusionError > {
723- let d_cfg = DistributedConfig :: from_session_config_mut ( self ) ?;
723+ let d_cfg = DistributedConfig :: from_config_options_mut ( self . options_mut ( ) ) ?;
724724 d_cfg. partial_reduce = enabled;
725725 Ok ( ( ) )
726726 }
@@ -729,7 +729,7 @@ impl DistributedExt for SessionConfig {
729729 & mut self ,
730730 budget_bytes : usize ,
731731 ) -> Result < ( ) , DataFusionError > {
732- let d_cfg = DistributedConfig :: from_session_config_mut ( self ) ?;
732+ let d_cfg = DistributedConfig :: from_config_options_mut ( self . options_mut ( ) ) ?;
733733 d_cfg. worker_connection_buffer_budget_bytes = budget_bytes;
734734 Ok ( ( ) )
735735 }
@@ -747,7 +747,7 @@ impl DistributedExt for SessionConfig {
747747 }
748748
749749 fn set_distributed_dynamic_task_count ( & mut self , enabled : bool ) -> Result < ( ) , DataFusionError > {
750- let d_cfg = DistributedConfig :: from_session_config_mut ( self ) ?;
750+ let d_cfg = DistributedConfig :: from_config_options_mut ( self . options_mut ( ) ) ?;
751751 d_cfg. dynamic_task_count = enabled;
752752 Ok ( ( ) )
753753 }
@@ -756,7 +756,7 @@ impl DistributedExt for SessionConfig {
756756 & mut self ,
757757 bytes_per_partition_per_second : usize ,
758758 ) -> Result < ( ) , DataFusionError > {
759- let d_cfg = DistributedConfig :: from_session_config_mut ( self ) ?;
759+ let d_cfg = DistributedConfig :: from_config_options_mut ( self . options_mut ( ) ) ?;
760760 d_cfg. bytes_per_partition_per_second = bytes_per_partition_per_second;
761761 Ok ( ( ) )
762762 }
0 commit comments