简体   繁体   English

配置单元查询失败:ParseException行无法识别select子句中'(''WITH''DATA_SET'附近的输入

[英]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.

相关问题 Hive ParseException-无法识别Select子句中的输入 - Hive ParseException - cannot recognize input in Select Clause Hive FAILED:ParseException行2:0无法识别&#39;&#39;macaddress&#39;&#39;&#39;CHAR&#39;&#39;附近的输入(&#39;在列规范中&#39; - Hive FAILED: ParseException line 2:0 cannot recognize input near ''macaddress'' 'CHAR' '(' in column specification 蜂巢:失败:ParseException行1:0无法识别“ ls”附近的输入 <EOF> &#39;&#39; <EOF> &#39; - Hive: Failed: ParseException line 1:0 cannot recognize input near 'ls' '<EOF>' '<EOF>' hive:ParseException行3:23无法识别&#39;from&#39;附近的输入 - hive : ParseException line 3:23 cannot recognize input near 'from' 失败:ParseException行1:36无法识别“ 1987”附近的输入 - FAILED: ParseException line 1:36 cannot recognize input near '1987' 气流失败:ParseException 行 2:0 无法识别附近的输入 - Airflow Failed: ParseException line 2:0 cannot recognize input near ParseException第6:5行无法识别joinSource中&#39;(&#39;&#39;SELECT&#39;&#39;system&#39;附近的输入 - ParseException line 6:5 cannot recognize input near '(' 'SELECT' 'system' in joinSource 从Windows导入到Hive,ParseException行1:0无法识别&#39;into&#39;附近的输入&#39; <EOF> &#39; - Import from windows to Hive, ParseException line 1:0 cannot recognize input near 'into' '<EOF>' Hive ParseException - 无法识别“end”“string”附近的输入 - Hive ParseException - cannot recognize input near 'end' 'string' 蜂巢parseexception无法识别“显示”附近的输入<eof> - hive parseexception cannot recognize input near 'show' <eof>
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM