Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC2CC18B7C for ; Thu, 28 May 2015 23:02:17 +0000 (UTC) Received: (qmail 41843 invoked by uid 500); 28 May 2015 23:02:17 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 41820 invoked by uid 500); 28 May 2015 23:02:17 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 41810 invoked by uid 99); 28 May 2015 23:02:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 May 2015 23:02:17 +0000 Date: Thu, 28 May 2015 23:02:17 +0000 (UTC) From: "Mostafa Mokhtar (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-10704) Errors in Tez HashTableLoader when estimated table size is 0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-10704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14563842#comment-14563842 ] Mostafa Mokhtar commented on HIVE-10704: ---------------------------------------- Table size of 0 is usually an error in the statistics and the actual table can be arbitrary big, so evenly dividing the memory is a much safer bet. And in the case you mentioned above each hash table will get hive.auto.convert.join.noconditionaltask.size / 3. By default this is Container size/3 which is more than enough for smaller tables. > Errors in Tez HashTableLoader when estimated table size is 0 > ------------------------------------------------------------ > > Key: HIVE-10704 > URL: https://issues.apache.org/jira/browse/HIVE-10704 > Project: Hive > Issue Type: Bug > Components: Query Processor > Reporter: Jason Dere > Assignee: Mostafa Mokhtar > Fix For: 1.2.1 > > Attachments: HIVE-10704.1.patch, HIVE-10704.2.patch, HIVE-10704.3.patch > > > Couple of issues: > - If the table sizes in MapJoinOperator.getParentDataSizes() are 0 for all tables, the largest small table selection is wrong and could select the large table (which results in NPE) > - The memory estimates can either divide-by-zero, or allocate 0 memory if the table size is 0. Try to come up with a sensible default for this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)