我正在尝试使用参数(日期和后缀)在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}
奇怪的是,有时候我会收到这个错误:
您的查询有以下错误:
编译语句时出错:FAILED:ParseException行1:33无法识别create table语句中'$''{''suffix'附近的输入
有时它可以工作,但只创建了第一个表..
重要的是,当我一次只询问一个查询时,一切都有效。
我正在使用hue:3.5.0,(apache)hive:0.13.1