-
- Downloads
[SPARK-17860][SQL] SHOW COLUMN's database conflict check should respect case...
[SPARK-17860][SQL] SHOW COLUMN's database conflict check should respect case sensitivity configuration ## What changes were proposed in this pull request? SHOW COLUMNS command validates the user supplied database name with database name from qualified table name name to make sure both of them are consistent. This comparison should respect case sensitivity. ## How was this patch tested? Added tests in DDLSuite and existing tests were moved to use new sql based test infrastructure. Author: Dilip Biswal <dbiswal@us.ibm.com> Closes #15423 from dilipbiswal/dkb_show_column_fix.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala 1 addition, 11 deletions...scala/org/apache/spark/sql/execution/SparkSqlParser.scala
- sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala 12 additions, 2 deletions...scala/org/apache/spark/sql/execution/command/tables.scala
- sql/core/src/test/resources/sql-tests/inputs/show_columns.sql 58 additions, 0 deletions...core/src/test/resources/sql-tests/inputs/show_columns.sql
- sql/core/src/test/resources/sql-tests/results/show_columns.sql.out 217 additions, 0 deletions...src/test/resources/sql-tests/results/show_columns.sql.out
- sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala 1 addition, 0 deletions...c/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala
- sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLCommandSuite.scala 10 additions, 8 deletions.../apache/spark/sql/execution/command/DDLCommandSuite.scala
- sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala 17 additions, 0 deletions...ala/org/apache/spark/sql/execution/command/DDLSuite.scala
- sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveCommandSuite.scala 1 addition, 22 deletions...rg/apache/spark/sql/hive/execution/HiveCommandSuite.scala
- sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveComparisonTest.scala 1 addition, 1 deletion.../apache/spark/sql/hive/execution/HiveComparisonTest.scala
Loading
Please register or sign in to comment