XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.7, 3.0.1, 3.1.0
    • 2.4.8, 3.0.2, 3.1.0
    • SQL
    • None

    Description

      SHOW PARTITIONS is case sensitive, and doesn't respect the SQL config spark.sql.caseSensitive which is false by default, for instance:

      spark-sql> CREATE TABLE tbl1 (price int, qty int, year int, month int)
               > USING parquet
               > PARTITIONED BY (year, month);
      spark-sql> INSERT INTO tbl1 PARTITION(year = 2015, month = 1) SELECT 1, 1;
      spark-sql> SHOW PARTITIONS tbl1 PARTITION(YEAR = 2015, Month = 1);
      Error in query: Non-partitioning column(s) [YEAR, Month] are specified for SHOW PARTITIONS;
      

       

      Attachments

        Issue Links

          Activity

            People

              maxgekk Max Gekk
              maxgekk Max Gekk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: