Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 5079 invoked from network); 8 Apr 2009 22:52:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2009 22:52:36 -0000 Received: (qmail 5357 invoked by uid 500); 8 Apr 2009 22:52:36 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 5324 invoked by uid 500); 8 Apr 2009 22:52:36 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 5312 invoked by uid 99); 8 Apr 2009 22:52:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 22:52:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 22:52:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EFA15234C004 for ; Wed, 8 Apr 2009 15:52:12 -0700 (PDT) Message-ID: <1038652761.1239231132980.JavaMail.jira@brutus> Date: Wed, 8 Apr 2009 15:52:12 -0700 (PDT) From: "Neil Conway (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Commented: (HIVE-385) Split Driver.run() into compile() + exec() In-Reply-To: <7447905.1238785692902.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12697274#action_12697274 ] Neil Conway commented on HIVE-385: ---------------------------------- Woops, silly mistake. I've attached a revisedion version with the Apache header. Thanks for the code review. > Split Driver.run() into compile() + exec() > ------------------------------------------ > > Key: HIVE-385 > URL: https://issues.apache.org/jira/browse/HIVE-385 > Project: Hadoop Hive > Issue Type: Improvement > Components: Query Processor > Reporter: Neil Conway > Assignee: Neil Conway > Attachments: hive_driver_compile.patch, jira_385-1.patch, jira_385-2.patch > > > Currently, Driver.run() parses, analyzes, and then executes a given query string. This isn't very flexible: it would be nice to be able to parse and analyze a query to get a query plan, and then execute that query plan at a later time (zero or more times). This would also be a necessary prerequisite for supporting server-side prepared statements. > I'd like to change Driver as follows: > * Add a new method Driver.compile(String), which parses and analyzes the given query string, and returns an object representing the planned query > * Add a new method Driver.execute(Plan), which runs the given planned query > * Reimplement run(String) as { p = compile(String); execute(p); } > Comments welcome; I should have a candidate patch ready soon. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.