Indhumathi27 commented on a change in pull request #3174: [CARBONDATA-3344] Fix
Drop column not present in table
URL: https://github.com/apache/carbondata/pull/3174#discussion_r272833530
##########
File path:
integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/AlterTableTestCase.scala
##########
@@ -1024,6 +1026,15 @@ class AlterTableTestCase extends QueryTest with
BeforeAndAfterAll {
}
}
+ test("Test drop columns not present in the table") {
+ sql("drop table if exists test1")
+ sql("create table test1(col1 int) stored by 'carbondata'")
+ val exception = intercept[ProcessMetaDataException] {
+ sql("alter table test1 drop columns(name)")
+ }
+ assert(exception.getMessage.contains("Column name does not exists in the
table default.test1"))
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services