Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-44355

Move commands to CTEDef code path and deprecate CTE inline path

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 4.0.0
    • SQL
    • None

    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

        Activity

          People

            cloud_fan Wenchen Fan
            maxgekk Max Gekk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: