cannot recognize input near 'as' ''0-1000'' ',' in selection target
时间: 2023-08-24 20:05:35 浏览: 420
引用\[1\]:hive. FAILED: ParseException line 1:13 cannot recognize input near ‘date’ ‘from’ ‘user_action’ in expression specification 事发现场 。 引用\[2\]:报错: FAILED: ParseException line 1:13 cannot recognize input near ‘date’ ‘from’ ‘user_action’ in expression specification select user_id,scene from user_action; 。 引用\[3\]:写了一个简单的shell脚本调用hive执行组装的sql,在执行时总是报cannot recognize input near '<EOF>' in select clause错误, 单独在hive提示符下却能正常执行。 #!/bin/bash keyname="type" sql=" select tags\['$keyname'\] from user_tags " echo ${sql} hive -e ${sql} 。
问题: cannot recognize input near 'as' ''0-1000'' ',' in selection target
回答: 这个错误通常是由于Hive查询语句中的语法错误导致的。根据提供的引用内容,无法确定具体的查询语句和错误的原因。但是根据错误信息中的提示,可能是在查询语句的选择目标中出现了语法错误。在选择目标中,可能存在不正确的语法或者缺少必要的关键字。请检查查询语句中的选择目标部分,并确保语法正确。如果问题仍然存在,请提供更详细的查询语句和错误信息,以便更好地帮助您解决问题。
#### 引用[.reference_title]
- *1* *2* [ FAILED: ParseException line 1:13 cannot recognize input near ‘date’ ‘from’ ‘user_action’ in ...](https://blog.csdn.net/BD_fuhong/article/details/111921509)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [shell脚本中用hive -e执行sql出现「cannot recognize input near ‘‘ in select clause」问题](https://blog.csdn.net/helloxiaozhe/article/details/127764470)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文
相关推荐


















