You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maxim Gekk (Jira)" <ji...@apache.org> on 2021/02/25 15:19:00 UTC
[jira] [Created] (SPARK-34543) Respect case sensitivity in V1 ALTER
TABLE .. SET LOCATION
Maxim Gekk created SPARK-34543:
----------------------------------
Summary: Respect case sensitivity in V1 ALTER TABLE .. SET LOCATION
Key: SPARK-34543
URL: https://issues.apache.org/jira/browse/SPARK-34543
Project: Spark
Issue Type: Sub-task
Components: SQL
Affects Versions: 2.4.7, 3.0.1, 3.1.0
Reporter: Maxim Gekk
Assignee: Maxim Gekk
Fix For: 2.4.8, 3.0.2, 3.1.0
SHOW PARTITIONS is case sensitive, and doesn't respect the SQL config *spark.sql.caseSensitive* which is false by default, for instance:
{code:sql}
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;
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org