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 D8687200C4E for ; Thu, 2 Mar 2017 03:11:51 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D56DC160B78; Thu, 2 Mar 2017 02:11:51 +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 305EE160B7F for ; Thu, 2 Mar 2017 03:11:51 +0100 (CET) Received: (qmail 25549 invoked by uid 500); 2 Mar 2017 02:11:50 -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 25533 invoked by uid 99); 2 Mar 2017 02:11:50 -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; Thu, 02 Mar 2017 02:11:50 +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 8713EC028C for ; Thu, 2 Mar 2017 02:11:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.363 X-Spam-Level: X-Spam-Status: No, score=0.363 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001, URIBL_BLOCKED=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 93MGhfAR4JQ0 for ; Thu, 2 Mar 2017 02:11:48 +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 0B70B5F403 for ; Thu, 2 Mar 2017 02:11:47 +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 v222BkYF007536; Thu, 2 Mar 2017 02:11:46 GMT Message-Id: <201703020211.v222BkYF007536@ip-10-146-233-104.ec2.internal> Date: Thu, 2 Mar 2017 02:11:46 +0000 From: "Tim Armstrong (Code Review)" To: Joe McDonnell , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Alex Behm , Mostafa Mokhtar , Matthew Mulder , Marcel Kornacker , Lars Volker Reply-To: tarmstrong@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-4624=3A_Implement_Parquet_dictionary_filtering=0A?= X-Gerrit-Change-Id: I3a7cc3bd0523fbf3c79bd924219e909ef671cfd7 X-Gerrit-ChangeURL: X-Gerrit-Commit: f40f560eadea5f5ebd2f70247d72c59239970832 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, 02 Mar 2017 02:11:52 -0000 Tim Armstrong has posted comments on this change. Change subject: IMPALA-4624: Implement Parquet dictionary filtering ...................................................................... Patch Set 14: (1 comment) http://gerrit.cloudera.org:8080/#/c/5904/14/fe/src/main/java/org/apache/impala/analysis/FunctionCallExpr.java File fe/src/main/java/org/apache/impala/analysis/FunctionCallExpr.java: Line 243: public boolean isDeterministic() { > Switched this over to isBuiltinRandom/isBuiltinRandomFn. I agree that it is We ran into a similar problem with non-deterministic UDFs when we added expression rewrites. We never provided any guarantees about how non-deterministic UDFs were evaluated, and it was already inconsistent. E.g. partitions have been statically pruned based on UDF output since many releases ago, so we don't guarantee that predicates with a non-deterministic UDF are evaluated against every row anyway. The solution we went before was to change the behaviour (since it wasn't contractual) but provide the enable_expr_rewrites safety valve in case someone was relying on the behaviour. I believe we have a JIRA somewhere to add metadata about whether a UDF is non-determistic. -- To view, visit http://gerrit.cloudera.org:8080/5904 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I3a7cc3bd0523fbf3c79bd924219e909ef671cfd7 Gerrit-PatchSet: 14 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Joe McDonnell Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Impala Public Jenkins Gerrit-Reviewer: Joe McDonnell Gerrit-Reviewer: Lars Volker Gerrit-Reviewer: Marcel Kornacker Gerrit-Reviewer: Matthew Mulder Gerrit-Reviewer: Mostafa Mokhtar Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: Yes