执行sql时出现错误 extraneous input ';' expecting EOF near '<EOF>'

原文问题:

调用jdbc执行hive sql时出现错误

Error while compiling statement: FAILED: ParseException line 5:22 extraneous input ';' expecting EOF near '<EOF>'

错误原因是因为sql语句中多了分号

 

执行脚本时需要在sql后面添加分号

但是调用jdbc执行sql语句时,不可以在语句用分号结束


在大数据平台执行hive sql查询时,报错:org.apache.hadoop.hive.ql.parse.ParseException:line 1:249 extraneous input ';' expecting EOF near '<EOF>',把“;”去掉,则问题解决。

参考:执行sql时出现错误 extraneous input ';' expecting EOF near '<EOF>'

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Visual Assist X Build 1940 requires software maintenance through 2013.05.30 (General release.) New! Context-insensitive Highlight Active Word feature for unparsed files (such as text files) as well as strings and comments in parsed files. Enabled via Options | Advanced | Refactoring | Automatically highlight words matching comment under cursor. (case=73003) New! Users can disable Surround With for individual characters '/*{#( via the registry. (case=73487) 11315 New! Changed default C++ Create From Usage snippet to use std::logic_error instead of std::exception. (case=72946) 11314, 11282 Fixed crashes identified via Windows Error Reporting. (case=73742, case=73743, case=73744, case=73745, case=74097) Improved load time for solutions with tool-generated projects that are regenerated without change to contents. (case=74014) Case-sensitive filtering for Find Symbol in Solution and Open File in Solution introduced in build 1936 is now optional and controlled via context menu in results list. (case=74214) 11359, 11347 Several fixes for refactoring and navigation for partially qualified symbols brought into scope with the C++ using namespace directive. (case=5315, case=7148, case=20644) 6573, 5959, 5219 Fix for Create Declaration generating C++ code with redundant scope qualifier when target class is in a namespace. (case=5277, case=6593) 10819, 10053, 9172, 8062, 7385, 6934, 6257, 5959 Fix for Create/Move Implementation stripping necessary scope qualifier from method pointer parameter. (case=73856) Fixed Goto from VA Outline when duplicate code windows open. (case=61729) 11350, 10375 Fix for Goto missing some interface implementations. (case=74344) Fix for Create Implementation generating code with extraneous whitespace under some circumstances. (case=73112) 11291 Improved support for filename matching when names contain multiple dots. (case=73757) 11333 Fixed focus issue with the suggestion list that appears following "in" in a C# foreach statement. (case=73981) 10226 Surround With feature is no longer invokable within comments, string literals, and tags in XML/HTML/XAML. (case=74045) Fix for Visual Studio reporting an exception when scrolling quickly through HTML and ASP files containing JavaScript when highlighted find results are present. (case=74466) Fix for Add Include placing the #include directive within a function block under some conditions. (case=74288) 11363 Add Include is no longer offered for std::string if #include <string> is already present in the file. (case=74343) 11363 VS2008: Fixed intermittent crash at exit after a debugging session. (case=74338) 11368 VS2010+: Fixed highlighting issue for JavaScript code inside HTML and ASP files. (case=74469)

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值