diff --git a/datafusion/proto/src/physical_plan/mod.rs b/datafusion/proto/src/physical_plan/mod.rs index 3cfd7fc3188c..0c36dca9b427 100644 --- a/datafusion/proto/src/physical_plan/mod.rs +++ b/datafusion/proto/src/physical_plan/mod.rs @@ -1086,8 +1086,8 @@ pub trait PhysicalPlanNodeExt: Sized { ParquetSource::try_from_proto(self.node(), &decode_ctx) } #[cfg(not(feature = "parquet"))] - panic!( - "Unable to process a Parquet PhysicalPlan when `parquet` feature is not enabled" + not_impl_err!( + "Unable to process a Parquet PhysicalPlan when the `parquet` feature is not enabled" ) } PhysicalPlanType::AvroScan(scan) => { @@ -1423,8 +1423,8 @@ pub trait PhysicalPlanNodeExt: Sized { } #[cfg(not(feature = "parquet"))] - panic!( - "Unable to process a Parquet PhysicalPlan when `parquet` feature is not enabled" + not_impl_err!( + "Unable to process a Parquet PhysicalPlan when the `parquet` feature is not enabled" ) } @@ -1449,7 +1449,9 @@ pub trait PhysicalPlanNodeExt: Sized { } #[cfg(not(feature = "avro"))] - panic!("Unable to process a Avro PhysicalPlan when `avro` feature is not enabled") + not_impl_err!( + "Unable to process an Avro PhysicalPlan when the `avro` feature is not enabled" + ) } #[deprecated(