Skip to content

LogicalPlan::map_children should recurse into table scans defined by a plan #19272

@leoyvens

Description

@leoyvens

Describe the bug

This is about the TreeNode impl for LogicalPlan. Some LogicalPlan::TableScan are not actually leaves because they are defined by a logical plan. However here:

// plans without inputs
LogicalPlan::TableScan { .. }

The fn map_children is unconditionally assuming that the table scan is a leaf and has no children.

The correct behaviour would be to recurse into the plan, if one exists.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions