SteveLauC commented on code in PR #9793:
URL: https://github.com/apache/arrow-datafusion/pull/9793#discussion_r1538362272
##########
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>();
Review Comment:
Just realized that users can implement their own implementations if they
don't want this method to involve any computation, nice!
--
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]