Github user jackylk commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2366#discussion_r196307852
--- Diff:
integration/spark-common-test/src/test/scala/org/apache/carbondata/sql/commands/StoredAsCarbondataSuite.scala
---
@@ -87,7 +87,7 @@ class StoredAsCarbondataSuite extends QueryTest with
BeforeAndAfterEach {
sql("CREATE TABLE carbon_table(key INT, value STRING) STORED AS ")
} catch {
case e: Exception =>
- assert(e.getMessage.contains("no viable alternative at input"))
+ assert(true)
--- End diff --
Use `intercept` to intercept and assert the exception message
---