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

Wrong messages when CTAS with a Partition By clause

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1, 2.1.0
    • SQL
    • None

    Description

      When doing a CTAS with a Partition By clause, we got a wrong error message. For example,

      CREATE TABLE gen__tmp
      PARTITIONED BY (key string)
      AS SELECT key, value FROM mytable1
      
      Operation not allowed: Schema may not be specified in a Create Table As Select (CTAS) statement(line 2, pos 0)
      

      Attachments

        Activity

          People

            smilegator Xiao Li
            smilegator Xiao Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: