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 C9466200CAC for ; Mon, 5 Jun 2017 07:16:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C86F8160BE3; Mon, 5 Jun 2017 05:16:09 +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 1A46C160BE0 for ; Mon, 5 Jun 2017 07:16:08 +0200 (CEST) Received: (qmail 15150 invoked by uid 500); 5 Jun 2017 05:16:08 -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 15139 invoked by uid 99); 5 Jun 2017 05:16:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2017 05:16:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 36228C0254 for ; Mon, 5 Jun 2017 05:16:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id o12W59saUGUI for ; Mon, 5 Jun 2017 05:16:06 +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 4752A5F297 for ; Mon, 5 Jun 2017 05:16:05 +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 v555G3hH032008; Mon, 5 Jun 2017 05:16:03 GMT Message-Id: <201706050516.v555G3hH032008@ip-10-146-233-104.ec2.internal> Date: Mon, 5 Jun 2017 05:16:03 +0000 From: "Lars Volker (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Jim Apple Reply-To: lv@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-3643/IMPALA-5344=3A_Fix_FE_tests_on_Java_8=0A?= X-Gerrit-Change-Id: Iad8e1dccec3a51293a109c420bd2b88b9d1e0625 X-Gerrit-ChangeURL: X-Gerrit-Commit: 5782c986fb81dc3aa0d9e61a3046bb82fb73d89a 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: Mon, 05 Jun 2017 05:16:10 -0000 Lars Volker has posted comments on this change. Change subject: IMPALA-3643/IMPALA-5344: Fix FE tests on Java 8 ...................................................................... Patch Set 2: (6 comments) Thank you for the review. Please see my inline comments and PS4. http://gerrit.cloudera.org:8080/#/c/7073/2//COMMIT_MSG Commit Message: PS2, Line 10: replacing > Did you use a script to do a global replace in fe or did you pick-and-choos I picked the ones in files related to tests that were failing, and replaced those that occurred in loops or otherwise looked suspicious. PS2, Line 10: LinkedHashMap > I assume LinkedHashThing takes more memory than HashThing. Is this somethin Yes, LinkedHashThing has two references for the linked list, so it takes a bit more space. In return, it provides faster iteration. Here are the sources of the Node element for HashMap and LinkedHashMap: http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/java/util/HashMap.java#l278 http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/java/util/LinkedHashMap.java#l192 I couldn't find benchmarks on the web, let me know if you think we should do one. PS2, Line 13: a > long line Done PS2, Line 13: Java 7 and Java 8 > OpenJDK or Oracle or both? I ran tests for both, so I clarified it in the commit message. http://gerrit.cloudera.org:8080/#/c/7073/2/testdata/workloads/functional-planner/queries/PlannerTest/order.test File testdata/workloads/functional-planner/queries/PlannerTest/order.test: Line 694: | pass-through-operands: all > Are these plans functionally the same? If not, which one is better? I suspect the new one is better, since it skips the extra materialization step. However, Taras may want to have a look at this since having less plans with non-all pass-through-operands may reduce coverage. http://gerrit.cloudera.org:8080/#/c/7073/2/testdata/workloads/functional-planner/queries/PlannerTest/tpch-nested.test File testdata/workloads/functional-planner/queries/PlannerTest/tpch-nested.test: Line 2411: predicates on o: !empty(o.o_lineitems), o_orderstatus = 'F' > Does this difference show up also in the execution? If so, should we pick o My assumption was that we only do cost based ordering for join predicates and that normal conjuncts are evaluated on the materialized tuples as a whole. -- To view, visit http://gerrit.cloudera.org:8080/7073 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Iad8e1dccec3a51293a109c420bd2b88b9d1e0625 Gerrit-PatchSet: 2 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Lars Volker Gerrit-Reviewer: Jim Apple Gerrit-Reviewer: Lars Volker Gerrit-HasComments: Yes