File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ pub(crate) fn get_distributed_channel_resolver(
2323 . ok_or_else ( || exec_datafusion_err ! ( "ChannelResolver not present in the session config" ) )
2424}
2525
26+ /// Check if there is a distributed channel resolver registered with this [`SessionConfig`].
27+ pub fn has_distributed_channel_resolver ( cfg : & SessionConfig ) -> bool {
28+ cfg. get_extension :: < ChannelResolverExtension > ( ) . is_some ( )
29+ }
30+
2631#[ derive( Clone ) ]
2732struct ChannelResolverExtension ( Arc < dyn ChannelResolver + Send + Sync > ) ;
2833
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ mod protobuf;
1414#[ cfg( any( feature = "integration" , test) ) ]
1515pub mod test_utils;
1616
17- pub use channel_resolver_ext:: { BoxCloneSyncChannel , ChannelResolver } ;
17+ pub use channel_resolver_ext:: { has_distributed_channel_resolver , BoxCloneSyncChannel , ChannelResolver } ;
1818pub use distributed_ext:: DistributedExt ;
1919pub use distributed_physical_optimizer_rule:: DistributedPhysicalOptimizerRule ;
2020pub use execution_plans:: {
You can’t perform that action at this time.
0 commit comments