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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.3
    • Fix Version/s: 3.0.0
    • Component/s: SQL
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: