zhuqi-lucas opened a new pull request, #26841:
URL: https://github.com/apache/datafusion/pull/26841

   ## Which issue does this PR close?
   
   Part of #24264.
   
   ## Rationale for this change
   
   `sql_planner` has no case where a projection holds many computed expressions 
over a wide input, which is what layered views produce. Recomputing projection 
schemas in the optimizer is expensive exactly there, so changes such as #24281 
show no signal on the existing cases.
   
   ## What changes are included in this PR?
   
   Adds `optimizer_wide_projection_stack_all` and 
`optimizer_wide_projection_stack_half`: four nested projections of 200 computed 
expressions each over a 200-column table, with the outer query selecting all or 
half of the columns. Each expression reads its input column twice so the layers 
are not merged.
   
   ## Are these changes tested?
   
   Benchmark only. Run with `cargo bench --bench sql_planner -- 
optimizer_wide_projection`.
   
   ## Are there any user-facing changes?
   
   No.
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to