Return-Path: Delivered-To: apmail-hive-dev-archive@www.apache.org Received: (qmail 31067 invoked from network); 24 Nov 2010 15:21:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Nov 2010 15:21:07 -0000 Received: (qmail 22337 invoked by uid 500); 24 Nov 2010 15:21:39 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 22291 invoked by uid 500); 24 Nov 2010 15:21:37 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 22283 invoked by uid 500); 24 Nov 2010 15:21:37 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 22280 invoked by uid 99); 24 Nov 2010 15:21:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Nov 2010 15:21:37 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Nov 2010 15:21:37 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAOFLGNi029925 for ; Wed, 24 Nov 2010 15:21:16 GMT Message-ID: <13384536.287401290612076286.JavaMail.jira@thor> Date: Wed, 24 Nov 2010 10:21:16 -0500 (EST) From: "Edward Capriolo (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Updated: (HIVE-1096) Hive Variables MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Edward Capriolo updated HIVE-1096: ---------------------------------- Attachment: hive-1096-20.patch.txt Were two 15 patches. I bumped the number to 20 to clear any confusion. > Hive Variables > -------------- > > Key: HIVE-1096 > URL: https://issues.apache.org/jira/browse/HIVE-1096 > Project: Hive > Issue Type: New Feature > Components: Query Processor > Reporter: Edward Capriolo > Assignee: Edward Capriolo > Fix For: 0.7.0 > > Attachments: 1096-9.diff, hive-1096-10-patch.txt, hive-1096-11-patch.txt, hive-1096-12.patch.txt, hive-1096-15.patch.txt, hive-1096-15.patch.txt, hive-1096-2.diff, hive-1096-20.patch.txt, hive-1096-7.diff, hive-1096-8.diff, hive-1096.diff > > > From mailing list: > --Amazon Elastic MapReduce version of Hive seems to have a nice feature called "Variables." Basically you can define a variable via command-line while invoking hive with -d DT=2009-12-09 and then refer to the variable via ${DT} within the hive queries. This could be extremely useful. I can't seem to find this feature even on trunk. Is this feature currently anywhere in the roadmap?-- > This could be implemented in many places. > A simple place to put this is > in Driver.compile or Driver.run we can do string substitutions at that level, and further downstream need not be effected. > There could be some benefits to doing this further downstream, parser,plan. but based on the simple needs we may not need to overthink this. > I will get started on implementing in compile unless someone wants to discuss this more. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.