Hive 查询失败:ParseException 行无法识别 select 子句中 '(' 'WITH' 'DATA_SET' 附近的输入
Hive Query FAILED: ParseException line cannot recognize input near '(' 'WITH' 'DATA_SET' in select clause
我在使用 select 语句中的 "WITH" 子句编译 Hive View 查询时失败。下面是我尝试创建但遇到错误的相同视图。
create view test_view as(
with data_set as
(select * from test_data )
select * from data_set
) ;
Error - Error while compiling statement: FAILED: ParseException line 1:24 cannot recognize input near '(' 'with' 'data_set' in select
clause
请帮忙。
问题是由于括号:)
一旦我在创建视图 view_name 之后删除了括号作为 (*.. 它表示工作...
我在使用 select 语句中的 "WITH" 子句编译 Hive View 查询时失败。下面是我尝试创建但遇到错误的相同视图。
create view test_view as(
with data_set as
(select * from test_data )
select * from data_set
) ;
Error - Error while compiling statement: FAILED: ParseException line 1:24 cannot recognize input near '(' 'with' 'data_set' in select clause
请帮忙。
问题是由于括号:)
一旦我在创建视图 view_name 之后删除了括号作为 (*.. 它表示工作...