zabetak commented on code in PR #4478:
URL: https://github.com/apache/hive/pull/4478#discussion_r1268191286


##########
ql/src/test/queries/clientpositive/join_using_clause.q:
##########
@@ -0,0 +1,69 @@
+
+create table test (
+ a int
+);
+
+insert into test values (1);
+
+create table test1 (
+ a int,
+ b int
+);
+
+insert into test1 values (1, 2);
+
+create table test2 (
+ a int,
+ b int,
+ c int
+);
+
+insert into test2 values (1, 2, 3);
+
+-- self join with 1 column
+select * from test t1
+join test t2 using(a)
+join test t3 using(a);
+
+explain extended select * from test t1

Review Comment:
   The OPTIMIZED SQL is generated from the CBO plan so displaying the latter is 
sufficient. If in the CBO plan you have `Join(condition=[something])` then you 
will see that something generated as a `ON` clause when you go from plan to 
OPTIMIZED SQL (i.e., `RelToSqlConverter`).



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