Skip to content

Commit f790821

Browse files
committed
fix bug in test case
1 parent 5e91877 commit f790821

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,12 +1237,11 @@ class HiveQuerySuite extends HiveComparisonTest with SQLTestUtils with BeforeAnd
12371237
}
12381238
}
12391239

1240-
createQueryTest("SPARK-19490 case sensitivity when filtering hive partition columns",
1241-
"""
1242-
| CREATE TABLE partition_test (key Int) partitioned by (date string);
1243-
| INSERT OVERWRITE TABLE partition_test partition('20170101') select 1 from src limit 1;
1244-
| SELECT * FROM partition_test where DATE = '20170101';
1245-
""".stripMargin)
1240+
test("SPARK-19490 case sensitivity when filtering hive partition columns") {
1241+
sql("CREATE TABLE partition_test (key Int) partitioned by (date string)")
1242+
sql("INSERT OVERWRITE TABLE partition_test partition('20170101') select 1 from src limit 1")
1243+
sql("SELECT * FROM partition_test where DATE = '20170101'")
1244+
}
12461245
}
12471246

12481247
// for SPARK-2180 test

0 commit comments

Comments
 (0)