配置单元中带有参数的两个查询
two queries with parameters in hive
我正在尝试 运行 hue/hive 中的两个带有参数(日期和后缀)的查询,但它不起作用。我想知道是否有可能或者我应该总是 运行 他们分开(这很不方便)。
查询:
create table private_kubicki.tmp${suffix} as
select
id,
c1,
c2
from
private_kubicki.testy_${suffix2}
where
${cond}
;
create table private_kubicki.tmp2${suffix} as
select
id,
c1,
c2
from
private_kubicki.testy_${suffix2}
where
${cond2}
奇怪的是有时我会得到这个错误:
Your query has the following error(s):
Error while compiling statement: FAILED: ParseException line 1:33 cannot recognize input near '$' '{' 'suffix' in create table statement
有时它可以工作,但只创建了第一个 table..
重要的是,当我一次只询问一个查询时,一切正常。
我正在使用色调:3.5.0,(apache) 配置单元:0.13.1
在 https://issues.cloudera.org/browse/HUE-2136 完成之前,这不会像目前那样工作,但票证中解释了 2 个解决方法。
我正在尝试 运行 hue/hive 中的两个带有参数(日期和后缀)的查询,但它不起作用。我想知道是否有可能或者我应该总是 运行 他们分开(这很不方便)。
查询:
create table private_kubicki.tmp${suffix} as
select
id,
c1,
c2
from
private_kubicki.testy_${suffix2}
where
${cond}
;
create table private_kubicki.tmp2${suffix} as
select
id,
c1,
c2
from
private_kubicki.testy_${suffix2}
where
${cond2}
奇怪的是有时我会得到这个错误:
Your query has the following error(s):
Error while compiling statement: FAILED: ParseException line 1:33 cannot recognize input near '$' '{' 'suffix' in create table statement
有时它可以工作,但只创建了第一个 table..
重要的是,当我一次只询问一个查询时,一切正常。
我正在使用色调:3.5.0,(apache) 配置单元:0.13.1
在 https://issues.cloudera.org/browse/HUE-2136 完成之前,这不会像目前那样工作,但票证中解释了 2 个解决方法。