Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A053A189B4 for ; Tue, 14 Jul 2015 22:09:43 +0000 (UTC) Received: (qmail 40710 invoked by uid 500); 14 Jul 2015 22:09:43 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 40639 invoked by uid 500); 14 Jul 2015 22:09:43 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 40624 invoked by uid 99); 14 Jul 2015 22:09:43 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2015 22:09:43 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 10906BBA11; Tue, 14 Jul 2015 22:09:42 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============2985819259186021268==" MIME-Version: 1.0 Subject: Review Request 36486: HIVE-11262 Skip MapJoin processing if the join hash table is empty From: "Jason Dere" To: "Matt McCline" , "Vikram Dixit Kumaraswamy" , "Wei Zheng" Cc: "Jason Dere" , "hive" Date: Tue, 14 Jul 2015 22:09:42 -0000 Message-ID: <20150714220942.17362.30443@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Jason Dere" X-ReviewGroup: hive X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/36486/ X-Sender: "Jason Dere" Reply-To: "Jason Dere" X-ReviewRequest-Repository: hive-git --===============2985819259186021268== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/36486/ ----------------------------------------------------------- Review request for hive, Matt McCline, Vikram Dixit Kumaraswamy, and Wei Zheng. Bugs: HIVE-11262 https://issues.apache.org/jira/browse/HIVE-11262 Repository: hive-git Description ------- - Added size() method to HashTableContainer interface/implementations. - After loading hashTable, check if size == 0 and if join is all inner joins. If so, set done on the MapJoinOperator. Diffs ----- ql/src/java/org/apache/hadoop/hive/ql/exec/MapJoinOperator.java 15cafdd ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/HybridHashTableContainer.java e338a31 ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/MapJoinBytesTableContainer.java 83a1521 ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/MapJoinTableContainer.java 9d8cbcb ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/fast/VectorMapJoinFastHashTable.java fbe6b4c ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/fast/VectorMapJoinFastTableContainer.java 4b1d6f6 ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/hashtable/VectorMapJoinHashTable.java 7e219ec ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/optimized/VectorMapJoinOptimizedHashTable.java a2d4e4c Diff: https://reviews.apache.org/r/36486/diff/ Testing ------- Thanks, Jason Dere --===============2985819259186021268==--