Re: Variable Substitution

2013-03-06 Thread Matt Tucker
re that having 1 variable reference that's not defined should prevent the others from working. On Mar 6, 2013, at 4:41 PM, Edward Capriolo wrote: > It was done like this in hive because that is what hadoops variable > substitution does, namely if it does not understand the variable

Re: Variable Substitution

2013-03-06 Thread Edward Capriolo
It was done like this in hive because that is what hadoops variable substitution does, namely if it does not understand the variable it does not replace it. On Wed, Mar 6, 2013 at 4:30 PM, Dean Wampler < dean.wamp...@thinkbiganalytics.com> wrote: > Even newer versions of Hive do this. A

Re: Variable Substitution

2013-03-06 Thread Dean Wampler
n Wed, Mar 6, 2013 at 3:13 PM, Matt Tucker wrote: > Using CDH3u3 (Hive 0.7.1), it appears that variable substitution becomes > disabled when I use a variable in a query that hasn't been defined. > > For instance, using the following script: > > set var2=2013-02-01; >

Re: variable substitution doesn't for table name?

2012-08-31 Thread Yue Guan
I'm using Hive 0.7.0. Yeah, this is out of my expectation. On Fri, Aug 31, 2012 at 5:05 PM, Edward Capriolo wrote: > No. Variable substitution works for anything. Likely your version of hive is > old and does not support this at all. > > > On Friday, August 31, 2012, Yu

Re: variable substitution doesn't for table name?

2012-08-31 Thread Edward Capriolo
No. Variable substitution works for anything. Likely your version of hive is old and does not support this at all. On Friday, August 31, 2012, Yue Guan wrote: > Hi, there > > Is variable substitution good for tables? This is what I tried: > > set table_name=test_table; > exp

variable substitution doesn't for table name?

2012-08-31 Thread Yue Guan
Hi, there Is variable substitution good for tables? This is what I tried: set table_name=test_table; explain select * from ${hiveconf:table_name}; FAILED: Parse Error: line 1:22 cannot recognize input '$' in join source So I just want to confirm that variable substitution is onl

RE: Variable Substitution Depth Limit

2012-03-30 Thread Tucker, Matt
That did the trick. Thanks Carla! Matt Tucker -Original Message- From: carla.stae...@nokia.com [mailto:carla.stae...@nokia.com] Sent: Friday, March 30, 2012 11:31 AM To: user@hive.apache.org Subject: RE: Variable Substitution Depth Limit Sorry, hit send too fast...As a work around for

RE: Variable Substitution Depth Limit

2012-03-30 Thread carla.staeben
ton) Sent: Friday, March 30, 2012 11:30 To: user@hive.apache.org Subject: RE: Variable Substitution Depth Limit Yeah, you're not the only one who's run into that issue. There is an open Jira item for it, so they're aware we'd like it configurable anyway... https://issues.ap

RE: Variable Substitution Depth Limit

2012-03-30 Thread carla.staeben
l.com] Sent: Friday, March 30, 2012 11:19 To: user@hive.apache.org Subject: Re: Variable Substitution Depth Limit Unfortunately you are going to have to roll your own hive. It was just a concept we borrowed from Hadoop since it does not support more then 40 depth substitution. We can probably make

Re: Variable Substitution Depth Limit

2012-03-30 Thread Edward Capriolo
ery to join all of the tables and select all of the > appropriate columns.  In this query, I reference the ${hiveconf:table} > variable 122 times, and end up receiving this error: > “java.lang.IllegalStateException: Variable substitution depth too large: > 40”.  According to a quick Goog

Variable Substitution Depth Limit

2012-03-30 Thread Tucker, Matt
tables and select all of the appropriate columns. In this query, I reference the ${hiveconf:table} variable 122 times, and end up receiving this error: "java.lang.IllegalStateException: Variable substitution depth too large: 40". According to a quick Google search, it appears tha