Github user xubo245 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1990#discussion_r172508765
--- Diff:
integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/standardpartition/StandardPartitionTableQueryTestCase.scala
---
@@ -256,9 +256,11 @@ test("Creation of partition table should fail if the
colname in table schema and
""".stripMargin)
sql("insert into partitionTable select 1,'huawei','abc'")
checkAnswer(sql("show partitions partitionTable"),
Seq(Row("email=abc")))
- intercept[Exception]{
+ val e = intercept[AnalysisException]{
sql("alter table partitionTable PARTITION (email='abc') rename to
PARTITION (email='def)")
}
+ //TODO: error message is improper
+ assert(e.getMessage.contains("failure: identifier matching regex"))
--- End diff --
ok, fixed it. Thanks!
---