Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 80DB6200CC4 for ; Thu, 13 Jul 2017 23:59:34 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7F06616CFBD; Thu, 13 Jul 2017 21:59:34 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C641D16CFBA for ; Thu, 13 Jul 2017 23:59:33 +0200 (CEST) Received: (qmail 505 invoked by uid 500); 13 Jul 2017 21:59:33 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 494 invoked by uid 99); 13 Jul 2017 21:59:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2017 21:59:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 29EE51A06BE for ; Thu, 13 Jul 2017 21:59:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id s7pxBglHnj8A for ; Thu, 13 Jul 2017 21:59:30 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 366985FBBD for ; Thu, 13 Jul 2017 21:59:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id v6DLxMJR003715; Thu, 13 Jul 2017 21:59:22 GMT Message-Id: <201707132159.v6DLxMJR003715@ip-10-146-233-104.ec2.internal> Date: Thu, 13 Jul 2017 21:59:21 +0000 From: "Tim Armstrong (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Dan Hecht Reply-To: tarmstrong@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-4674=3A_Part_3=3A_fix_null-aware_anti_join=0A?= X-Gerrit-Change-Id: Ie2e60eb4dd32bd287a31479a6232400df65964c1 X-Gerrit-ChangeURL: X-Gerrit-Commit: 4562d7df5407fdfa597cd3b70aa45a9aba70d5f9 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.7 archived-at: Thu, 13 Jul 2017 21:59:34 -0000 Tim Armstrong has posted comments on this change. Change subject: IMPALA-4674: Part 3: fix null-aware anti join ...................................................................... Patch Set 1: (7 comments) http://gerrit.cloudera.org:8080/#/c/7367/1//COMMIT_MSG Commit Message: PS1, Line 13: note not Line 25: Instead we just iterate over the rows of the stream. > are there join class comments that should be updated to explain this strate I updated the member declarations to mentioned when things are pinned/unpinned and updated the EvaluateNullProbe() comment. I think this covers all of the points in the commit message. http://gerrit.cloudera.org:8080/#/c/7367/1/be/src/exec/partitioned-hash-join-builder.cc File be/src/exec/partitioned-hash-join-builder.cc: Line 251: RETURN_IF_ERROR(null_aware_partition_->Spill(BufferedTupleStreamV2::UNPIN_ALL)); > it's a bit confusing that we call Partition::Spill() when Partition::is_spi Improved the comment. http://gerrit.cloudera.org:8080/#/c/7367/1/be/src/exec/partitioned-hash-join-node.h File be/src/exec/partitioned-hash-join-node.h: PS1, Line 95: /// Null aware anti-join (NAAJ) extends the above algorithm by accumulating rows with : /// NULLs into several different streams, which are processed in a separate step to : /// produce additional output rows. The NAAJ algorithm is documented in more detail in : /// header comments for the null aware functions and data structures. > any of this need updates (or the comments this references)? Done. It would be nice to have a clearer explanation of the NAAJ here (i.e. why NULLs should be treated that wasy) but that seems out of scope for this change. http://gerrit.cloudera.org:8080/#/c/7367/1/testdata/workloads/functional-query/queries/QueryTest/spilling-naaj.test File testdata/workloads/functional-query/queries/QueryTest/spilling-naaj.test: Line 3: set max_block_mgr_memory=10m; Moved below comment Line 8: # This returns the rows returned from as garbled Line 17: where l_suppkey = 4162 and l_shipmode = 'AIR' and l_returnflag = 'A' and l_shipdate > '1993-01-01' and Fixed long lines in files -- To view, visit http://gerrit.cloudera.org:8080/7367 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ie2e60eb4dd32bd287a31479a6232400df65964c1 Gerrit-PatchSet: 1 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Tim Armstrong Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: Yes