You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Abhishek Somani (Jira)" <ji...@apache.org> on 2021/10/18 17:23:00 UTC
[jira] [Created] (SPARK-37046) Alter view does not preserve column
case
Abhishek Somani created SPARK-37046:
---------------------------------------
Summary: Alter view does not preserve column case
Key: SPARK-37046
URL: https://issues.apache.org/jira/browse/SPARK-37046
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 3.2.0
Reporter: Abhishek Somani
On running an `alter view` command, the column case is not preserved.
Repro:
{code:java}
scala> sql("create view v as select 1 as A, 1 as B")
res2: org.apache.spark.sql.DataFrame = []
scala> sql("describe v").collect.foreach(println)
[A,int,null]
[B,int,null]
scala> sql("alter view v as select 1 as C, 1 as D")
res4: org.apache.spark.sql.DataFrame = []
scala> sql("describe v").collect.foreach(println)
[c,int,null]
[d,int,null]
{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