Description
Right now our CTE resolution code path is diverged: query with commands go into CTE inline code path where non-command queries go into CTEDef code path (see https://github.com/apache/spark/blob/42719d9425b9a24ef016b5c2874e522b960cf114/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CTESubstitution.scala#L50 ).
For longer term we should migrate command queries go through CTEDef as well and deprecate the CTE inline path.
Attachments
Issue Links
1.
|
Move INSERT INTO to CTEDef code path | Open | Unassigned |