panic may happen when limit is on top of window functions #25344
Labels
severity/major
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
type/enhancement
The issue or PR belongs to an enhancement.
Development Task
the select query would panic. Root cause is that, wrong column pruning for limit would lead to a bad plan that the schema of limit has more columns than its child schema.
The problem is incurred by #20288 when trying to do inline projection for limit, which changes limit from
baseLogicalPlan
to alogicalSchemaProducer
.The text was updated successfully, but these errors were encountered: