alamb opened a new pull request #8020: URL: https://github.com/apache/arrow/pull/8020
This PR demonstrates one approach of user defined LogicalPlan nodes could be implemented in DataFusion. The proposal can be found in https://docs.google.com/document/d/1IHCGkCuUvnE9BavkykPULn6Ugxgqc1JShT4nz1vMi7g/edit#heading=h.2nfzn4ggyl34 The major components of this PR are: 1. `LogicalPlanNode` Trait 2. A `LogicalPlan::UserDefined` type that adapts `dyn LogicalPlanNode` objects to work in LogicalPlan 3. Ported the code for the existing `LogicalPlan::Limit` vairant to instead use the `LogicalPlanNode` trait; All tests pass ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org