[ https://issues.apache.org/jira/browse/HIVE-22274?focusedWorklogId=328113&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-328113 ]
ASF GitHub Bot logged work on HIVE-22274: ----------------------------------------- Author: ASF GitHub Bot Created on: 14/Oct/19 20:23 Start Date: 14/Oct/19 20:23 Worklog Time Spent: 10m Work Description: vineetgarg02 commented on pull request #809: HIVE-22274: upgrade Calcite to 1.21 URL: https://github.com/apache/hive/pull/809#discussion_r334609909 ########## File path: ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/jdbc/HiveJdbcImplementor.java ########## @@ -109,7 +109,7 @@ public HiveJdbcImplementor(SqlDialect dialect, JavaTypeFactory typeFactory) { SqlNode sqlCondition = null; SqlLiteral condType = JoinConditionType.ON.symbol(POS); JoinType joinType = joinType(e.getJoinType()); - if (e.getJoinType() == JoinRelType.INNER && e.getCondition().isAlwaysTrue()) { + if ((e.getJoinType() == JoinRelType.INNER || e.isSemiJoin()) && e.getCondition().isAlwaysTrue()) { Review comment: Existing logic looks wrong. Even for SEMI JOIN `JoinType.COMMA` with condition `NONE` is created (in case condition is always true). @jcamachor Are there JDBC tests where I can test this logic for SEMI JOIN type? ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 328113) Time Spent: 0.5h (was: 20m) > Upgrade Calcite version to 1.21.0 > --------------------------------- > > Key: HIVE-22274 > URL: https://issues.apache.org/jira/browse/HIVE-22274 > Project: Hive > Issue Type: Task > Affects Versions: 3.1.2 > Reporter: Steve Carlin > Assignee: Steve Carlin > Priority: Major > Labels: pull-request-available > Attachments: HIVE-22274.1.patch, HIVE-22274.2.patch, > HIVE-22274.3.patch, HIVE-22274.4.patch, HIVE-22274.5.patch, > HIVE-22274.6.patch, HIVE-22274.7.patch, HIVE-22274.patch > > Time Spent: 0.5h > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.3.4#803005)