[ https://issues.apache.org/jira/browse/HIVE-25192?focusedWorklogId=628469&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-628469 ]
ASF GitHub Bot logged work on HIVE-25192: ----------------------------------------- Author: ASF GitHub Bot Created on: 27/Jul/21 14:06 Start Date: 27/Jul/21 14:06 Worklog Time Spent: 10m Work Description: dengzhhu653 commented on a change in pull request #2473: URL: https://github.com/apache/hive/pull/2473#discussion_r677484359 ########## File path: ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java ########## @@ -2680,9 +2683,9 @@ public void run() { total += estimator.estimate(jobConf, scanOp, -1).getTotalLength(); } recordSummary(path, new ContentSummary(total, -1, -1)); - } else { - // todo: should nullify summary for non-native tables, - // not to be selected as a mapjoin target + } else if (handler == null) { Review comment: The summary will be recorded in current [Context](https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java#L2709) and the change maps the non-native path to null as it ignores [recording summary](https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java#L2700). The [Optimizer](https://github.com/apache/hive/blob/7b3ecf617a6d46f48a3b6f77e0339fd4ad95a420/ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/AbstractJoinTaskDispatcher.java#L133) retrieves the summary from the same Context instance, as it is null, indicates that the table is not a good choice for [mapjoin target](https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java#L2757-L2760). -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 628469) Time Spent: 3h (was: 2h 50m) > Nullify summary for non-native tables > ------------------------------------- > > Key: HIVE-25192 > URL: https://issues.apache.org/jira/browse/HIVE-25192 > Project: Hive > Issue Type: Bug > Reporter: Zhihua Deng > Assignee: Zhihua Deng > Priority: Major > Labels: pull-request-available > Time Spent: 3h > Remaining Estimate: 0h > > When creating non-native tables like kudu, hbase and so on, we create a > warehouse location for these tables, though these tables may not use the > location to store data or for job plan, we should skip getting the input > summary of non-native tables when optimising joins, as which may cause oom > problem when the non-native table is on the build side. -- This message was sent by Atlassian Jira (v8.3.4#803005)