You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "Tpt (via GitHub)" <gi...@apache.org> on 2026/06/01 12:25:48 UTC
Re: [I] [EPIC] CTE Materalization [datafusion]
Tpt commented on issue #22676:
URL: https://github.com/apache/datafusion/issues/22676#issuecomment-4592547547
Outsider comment: materialization is useful not only for CTEs but for duplicated subplans in general. Instead of focusing only on CTEs, what about not touching the SQL planner at all but add a logical (or physical?) optimizer rule that looks for duplicated subplans and according to some heuristics insert a new `Materialized`/`Cached` node?
Exploring relations with materialized views might also be great. Materializing a subplans doing a query evaluation is very similar to creating/using a materialized view.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org