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

Parametrized identifiers not working when referencing CTEs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0
    • SQL

    Description

      Parametrized are not working when referencing a CTE:

      Example query that is failing:

      sql("with tt1 as (select 1) select * from identifier(:cte)", Map("cte" -> "tt1")) 

      Attachments

        Issue Links

          Activity

            People

              mihailotim-db Mihailo Timotic
              mihailotim-db Mihailo Timotic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: