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

SQL "range(N) as alias" or "range(N) alias" doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1.0
    • 2.3.0
    • SQL
    • None

    Description

      `select * from range(10) as A;` or `select * from range(10) A;`
      does not work.
      As a workaround, a subquery has to be used:
      `select * from (select * from range(10)) as A;`

      Attachments

        Activity

          People

            maropu Takeshi Yamamuro
            juliuszsompolski Juliusz Sompolski
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: