comphead commented on code in PR #9793:
URL: https://github.com/apache/arrow-datafusion/pull/9793#discussion_r1538276497
##########
datafusion/physical-plan/src/lib.rs:
##########
@@ -113,6 +113,15 @@ pub use datafusion_execution::{RecordBatchStream,
SendableRecordBatchStream};
/// [`required_input_distribution`]: ExecutionPlan::required_input_distribution
/// [`required_input_ordering`]: ExecutionPlan::required_input_ordering
pub trait ExecutionPlan: Debug + DisplayAs + Send + Sync {
+ /// Short name for the ExecutionPlan, such as 'ParquetExec'.
+ fn name(&self) -> &'static str {
+ let full_name = std::any::type_name::<Self>();
+ let maybe_start_idx = full_name.rfind(":");
Review Comment:
thanks @matthewmturner would you mind adding a unit test?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]