Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-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 35F1717667 for ; Tue, 10 Mar 2015 04:45:42 +0000 (UTC) Received: (qmail 91215 invoked by uid 500); 10 Mar 2015 04:45:42 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 91168 invoked by uid 500); 10 Mar 2015 04:45:41 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 91157 invoked by uid 500); 10 Mar 2015 04:45:41 -0000 Delivered-To: apmail-incubator-drill-dev@incubator.apache.org Received: (qmail 91152 invoked by uid 99); 10 Mar 2015 04:45:41 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2015 04:45:41 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id CF12F1D3A4F; Tue, 10 Mar 2015 04:45:39 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4825442074624182445==" MIME-Version: 1.0 Subject: Re: Review Request 31871: 2406 - part 2 - (subset of 2060 part 2) enable interpreted expression evaluation at planning time From: "Jacques Nadeau" To: "Jacques Nadeau" Cc: "Jason Altekruse" , "drill" Date: Tue, 10 Mar 2015 04:45:39 -0000 Message-ID: <20150310044539.17900.10710@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Jacques Nadeau" X-ReviewGroup: drill-git X-ReviewRequest-URL: https://reviews.apache.org/r/31871/ X-Sender: "Jacques Nadeau" References: <20150309220727.17900.27116@reviews.apache.org> In-Reply-To: <20150309220727.17900.27116@reviews.apache.org> Reply-To: "Jacques Nadeau" X-ReviewRequest-Repository: drill-git --===============4825442074624182445== 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/31871/#review75851 ----------------------------------------------------------- exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java Seems like this should be Exception, not just IOException. exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java Does this work correct in relationship to sendResult? It seems like if everything was okay but then we failed just above, we should send a failure rather than a success result. - Jacques Nadeau On March 9, 2015, 10:07 p.m., Jason Altekruse wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/31871/ > ----------------------------------------------------------- > > (Updated March 9, 2015, 10:07 p.m.) > > > Review request for drill and Jacques Nadeau. > > > Bugs: DRILL-2406 > https://issues.apache.org/jira/browse/DRILL-2406 > > > Repository: drill-git > > > Description > ------- > > To enable planning rules to take advantage of constant expressions in queries, or to allow them to run queries against small datasets, such as partition information we need to e able to evaluate expressions at planning time. Expression evaluation in the regular expecuation path is relatively expensive, as it invovles java code generation, compilation and JITing expression trees. An interpreted expression system was added recently to allow evaluating an expression without generating java code at runtime. This patch exposes that work (after some refactorings in 2143 and the first part of 2406) to the planning context for use in optimizer rules. > > > Diffs > ----- > > exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/DrillFunctionRegistry.java 00aaec6 > exec/java-exec/src/main/java/org/apache/drill/exec/memory/TopLevelAllocator.java 2a28bcb > exec/java-exec/src/main/java/org/apache/drill/exec/ops/BufferManager.java PRE-CREATION > exec/java-exec/src/main/java/org/apache/drill/exec/ops/FragmentContext.java aa1dffd > exec/java-exec/src/main/java/org/apache/drill/exec/ops/QueryContext.java c881432 > exec/java-exec/src/main/java/org/apache/drill/exec/planner/logical/DrillReduceAggregatesRule.java 93fff35 > exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/visitor/InsertLocalExchangeVisitor.java 907fcb1 > exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/DrillSqlOperator.java 6b54c43 > exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java 409450f > > Diff: https://reviews.apache.org/r/31871/diff/ > > > Testing > ------- > > Cluster tests completed, waiting on unit tests. > > > Thanks, > > Jason Altekruse > > --===============4825442074624182445==--