Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 3895 invoked from network); 8 Apr 2009 22:50:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2009 22:50:34 -0000 Received: (qmail 1242 invoked by uid 500); 8 Apr 2009 22:50:34 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 1202 invoked by uid 500); 8 Apr 2009 22:50:34 -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 1184 invoked by uid 99); 8 Apr 2009 22:50:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 22:50:34 +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:50:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 71C79234C4B1 for ; Wed, 8 Apr 2009 15:50:13 -0700 (PDT) Message-ID: <533523876.1239231013465.JavaMail.jira@brutus> Date: Wed, 8 Apr 2009 15:50:13 -0700 (PDT) From: "Neil Conway (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Updated: (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:all-tabpanel ] Neil Conway updated HIVE-385: ----------------------------- Attachment: jira_385-2.patch Candidate patch, v2. > 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.