kokila-19 commented on code in PR #6439:
URL: https://github.com/apache/hive/pull/6439#discussion_r3109523955


##########
ql/src/test/queries/clientpositive/sqlmerge.q:
##########
@@ -22,3 +22,15 @@ explain merge into acidTbl_n0 as t using nonAcidOrcTbl_n0 s 
ON t.a = s.a
 WHEN MATCHED AND s.a > 8 THEN DELETE
 WHEN MATCHED THEN UPDATE SET b = 7
 WHEN NOT MATCHED THEN INSERT VALUES(s.a, s.b);
+
+-- MERGE rewrite must preserve quoting for qualified identifiers like s.`date` 
when column name is function keyword
+drop table if exists src_table;
+drop table if exists tgt_table;
+create table src_table(a int, `date` int) clustered by (a) into 2 buckets 
stored as orc
+  TBLPROPERTIES ('transactional'='true');
+create table tgt_table(a int, `date` int) clustered by (a) into 2 buckets 
stored as orc
+  TBLPROPERTIES ('transactional'='true');

Review Comment:
   Updated the table name 



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to