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

Unable to insert partitioned table dynamically when partition name is upper case

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.3
    • 3.0.0
    • SQL
    • None

    Description

      -- create sql and column name is upper case
      CREATE TABLE src (KEY STRING, VALUE STRING) PARTITIONED BY (DS STRING)
      
      -- insert sql
      INSERT INTO TABLE src PARTITION(ds) SELECT 'k' key, 'v' value, '1' ds
      

      The error is:

      Error in query: org.apache.hadoop.hive.ql.metadata.Table.ValidationFailureSemanticException: Partition spec {ds=, DS=1} contains non-partition columns;
      

      Attachments

        Activity

          People

            viirya L. C. Hsieh
            514793425@qq.com ChenKai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: