我是Impala的新手,我需要创建带有select结果集的表,而且这个sql是在Java中使用JDBC运行的,请参阅下面的查询:41 as rule_id,49 as record_id,
(select count(1) as val from dirty_table where msg regexp不支持SELECT子句子查询,我们只能在FROM或WHERE子句中
我正在将SQL查询转换为Impala。SQL查询在select中使用子查询来创建新列,如下所示: select *, (select min(day) whereday > t.work_day) as next_work_day
from table1 t 但是,Impala不支持select中用于创建新列的子查询,因此此查询失败。请帮助我以Impala可以执行的方
其中一个在select语句中使用标量UDF,另一个在select语句中使用一个相关的子查询。Select col1, col2, (select col3 from table2 t2 where t1.col1=t2.col1)returns intdeclare @retCol1 int
select @returnCol1 = co
(select cast(state_id as string) from states_list) then (select e.COUNTRY_NAME from COUNTRIES_LIST e wheree.COUNTRY_ID = cast(c.user_country as int)) end countr