[英]Hive Query FAILED: ParseException line cannot recognize input near '(' 'WITH' 'DATA_SET' in select clause
I get a failure upon compiling a Hive View query using "WITH" Clause in the select statement. 在select语句中使用“ WITH”子句编译Hive View查询时失败。 Below is the same view which I try to create and I encounter the error.
下面是我尝试创建的同一视图,但遇到错误。
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
错误-编译语句时出错:失败:ParseException行1:24无法识别select子句中'(''with''data_set'附近的输入
Please help. 请帮忙。
Issue is due to the bracket :) 问题归因于括号:)
once I remove the bracket from after create view view_name as (* .. it stated working... 一旦我从创建视图view_name之后的括号中删除为(* ..它表示正在工作...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.