Indhumathi27 commented on a change in pull request #4156:
URL: https://github.com/apache/carbondata/pull/4156#discussion_r656271595
##########
File path:
integration/spark/src/test/scala/org/apache/carbondata/spark/testsuite/iud/UpdateCarbonTableTestCase.scala
##########
@@ -1187,6 +1187,22 @@ class UpdateCarbonTableTestCase extends QueryTest with
BeforeAndAfterAll {
Seq(Row("abc", 1, "aa", "aaa")))
}
+ test("test update on table with auto-merge enabled") {
+ sql("""drop table if exists iud.autoMergeUpdate""").collect()
+ sql("""create table iud.autoMergeUpdate (c1 string,c2 int,c3 string,c5
string) STORED AS
+ |carbondata tblproperties('auto_load_merge'='true')""".stripMargin)
+ sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/IUD/dest.csv' INTO table
iud.autoMergeUpdate""")
+ sql("update iud.autoMergeUpdate up_TAble set(up_table.C1)=('abc')").show()
+ sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/IUD/dest.csv' INTO table
iud.autoMergeUpdate""")
+ sql("update iud.autoMergeUpdate up_TAble set(up_table.C1)=('abcd')").show()
Review comment:
auto compaction does not happen without this fix. Added a assert to
check the time difference
--
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]