Skip to content

Commit 28d4203

Browse files
committed
remove method
1 parent 335d312 commit 28d4203

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

src/channel_resolver_ext.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ 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-
3126
#[derive(Clone)]
3227
struct ChannelResolverExtension(Arc<dyn ChannelResolver + Send + Sync>);
3328

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mod protobuf;
1414
#[cfg(any(feature = "integration", test))]
1515
pub mod test_utils;
1616

17-
pub use channel_resolver_ext::{has_distributed_channel_resolver, BoxCloneSyncChannel, ChannelResolver};
17+
pub use channel_resolver_ext::{BoxCloneSyncChannel, ChannelResolver};
1818
pub use distributed_ext::DistributedExt;
1919
pub use distributed_physical_optimizer_rule::DistributedPhysicalOptimizerRule;
2020
pub use execution_plans::{

src/protobuf/distributed_codec.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ impl PhysicalExtensionCodec for DistributedCodec {
5656
.map(|s| s.try_into())
5757
.ok_or(proto_error("ArrowFlightReadExec is missing schema"))??;
5858

59-
// Create a default SessionContext for the protobuf parsing
60-
// TODO: This loses the original function registry, but DataFusion 50.0.0 requires SessionContext
6159
let session_ctx = SessionContext::new();
6260
let partioning = parse_protobuf_partitioning(
6361
partitioning.as_ref(),

0 commit comments

Comments
 (0)