Github user anubhav100 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1934#discussion_r168088520
--- Diff:
integration/spark2/src/test/scala/org/apache/spark/carbondata/restructure/AlterTableValidationTestCase.scala
---
@@ -544,6 +546,13 @@ class AlterTableValidationTestCase extends
Spark2QueryTest with BeforeAndAfterAl
sql("drop table if exists restructure1")
sql("drop table if exists restructure")
}
+test("test alter command for boolean data type with correct default
measure value") {
+ sql("create table testalterwithboolean(id int,name string) stored by
'carbondata' ")
+ sql("insert into testalterwithboolean values(1,'anubhav') ")
+ sql(
+ "alter table testalterwithboolean add columns(booleanfield boolean)
tblproperties('default.value.booleanfield'='true')")
+ checkAnswer(sql("select * from
testalterwithboolean"),Seq(Row(1,"anubhav",true)))
+}
--- End diff --
done
---