Login  Register

[GitHub] [carbondata] akashrn5 commented on a change in pull request #4152: [CARBONDATA-4212] Fix case sensitive issue with Update query having Alias Table name

Posted by GitBox on Jun 18, 2021; 9:27pm
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/GitHub-carbondata-Indhumathi27-opened-a-new-pull-request-4152-CARBONDATA-4212-Fix-case-sensitive-isse-tp108950p108981.html


akashrn5 commented on a change in pull request #4152:
URL: https://github.com/apache/carbondata/pull/4152#discussion_r654197325



##########
File path: integration/spark/src/test/scala/org/apache/carbondata/spark/testsuite/iud/UpdateCarbonTableTestCase.scala
##########
@@ -1178,6 +1178,15 @@ class UpdateCarbonTableTestCase extends QueryTest with BeforeAndAfterAll {
     }
   }
 
+  test("update table having alias table name - case insensitive check") {
+    sql("""drop table if exists iud.zerorows""").collect()
+    sql("""create table iud.zerorows (c1 string,c2 int,c3 string,c5 string) STORED AS carbondata""")
+    sql(s"""LOAD DATA LOCAL INPATH '$resourcesPath/IUD/dest.csv' INTO table iud.zerorows""")
+    sql("update iud.zerorows up_TAble set(up_table.c1)=('abc') where up_TABLE.c2=1")

Review comment:
       here change column name also to other case, so even that will be validated in test case




--
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:
[hidden email]