在hive执行这个语句的时候报如下错误:

Error: Error while compiling statement: FAILED: ParseException line 1:20 cannot recognize input near 'as' 'date' ',' in selection target

原因:
date可能是hive的一个保留字,不能用做别名。在遇到类似问题时,报as附近有错误,那就检查下你起的别名是不是一个hive保留字,不能用作别名。

Error: Error while compiling statement: FAILED: ParseException line 1:20 cannot recognize input near相关推荐

  1. 建表错误:ParseException line 1:55 cannot recognize input near ‘)‘ ‘rowformat‘ ‘delimited‘ in column type

    报错信息如下图: 输入语句: create table cga_info1(name string,gender string,timeint)rowformat delimited fields t ...

  2. hive sql报错:SQL 错误 [10004] [42000]: Error while compiling statement: FAILED: SemanticException [Error

    SQL 错误 [10004] [42000]: Error while compiling statement: FAILED: SemanticException [Error 10004]: Li ...

  3. Error while compiling statement: FAILED: LockException [Error 10280]

    beeline在创建数据库时碰见报错 Error: Error while compiling statement: FAILED: LockException [Error 10280]: Erro ...

  4. 解决:Error while compiling statement: FAILED: SemanticException [Error 10007]: Ambiguous column refere

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1.报错: Error while compiling statement: FAILED: Sem ...

  5. SQL 错误 [40000] [42000]: Error while compiling statement: FAILED

    错误如下: SQL 错误 [40000] [42000]: Error while compiling statement: FAILED: SemanticException table is no ...

  6. Error: Error while compiling statement: FAILED: SemanticException Unable to load data to destination

    ods层新加了一张表,和以前的格式一样 DROP TABLE IF EXISTS ods_students_industry_level; CREATE TABLE `ods_students_ind ...

  7. Error: Error while compiling statement: FAILED: SemanticException Schema of both sides of union shou

    sqoop任务导数据到hive报错: Error: Error while compiling statement: FAILED: SemanticException Schema of both ...

  8. Hive连接产生笛卡尔集. FAILED: ParseException line 1:18 Failed to recognize predicate 'a'. Failed rule: 'kwIn

    我在实际使用时,设置了set hive.mapred.mode=nonstrict; 但是依旧报错.最后只好全部改成了inner join,这样子写起来很费劲. 而且最后算出来的数据跟网上的实例不太一 ...

  9. hive建表报错FAILED: ParseException line 2:0 Failed to recognize predicate ‘date‘. Failed rule: ‘identifi

    报错信息 FAILED: ParseException line 2:0 Failed to recognize predicate 'date'. Failed rule: 'identifier' ...

  10. hive hue 报FAILED: ParseException line 10:41 mismatched input ‘.‘ expecting )

    报错原因 FAILED: ParseException line 10:41 mismatched input '.' expecting ) 翻译大意: 失败:解析异常行10:41输入不匹配.&qu ...

最新文章

  1. WCF之服务实例管理
  2. 基础的重要性(程序猿之路)
  3. Boost:基于Boost的daytime服务测试程序
  4. Sublime Text 3下Emmet使用技巧
  5. 12096 - The SetStack Computer
  6. “Linaro”将推动开源软件新一波开发潮
  7. #python练习实例0:制作1-100随机抽取3个数字排队列
  8. cocos2dx[3.2](21)——观察者模式NotificationCenter
  9. Java中,类的实例化方法
  10. jQuery.bind事件 详解
  11. cocoscreator3.x 用tiledMap趟坑
  12. 通信原理第六章思维导图
  13. Linux - ZModem协议的sz命令传输文件异常
  14. Java开发五年,java面试未来职业规划
  15. 常见的Ajax写法汇总
  16. OpenCC的编译与多语言使用
  17. 像素级图像融合常用方法
  18. JVM 1.8 永久代---元空间 的变动
  19. python re findall 再次应用
  20. 全志VR9虚拟现实专用芯片处理器介绍

热门文章

  1. Jenkins手动更新AWS 上面的ECS服务
  2. 【TensorFlow系列】【九】利用tf.py_func自定义算子
  3. JS 屏蔽按键效果和改变按键效果
  4. Unity 3D 实战核心技术详解
  5. 源码维护基本命令diff_patch_quilt
  6. Nodejs express中创建ejs项目,解决express下默认创建jade,无法创建ejs问
  7. Android CircleMenu:旋转转盘选择Menu
  8. 认识接口(Interface)设计
  9. .NET程序员修炼之道
  10. IntelliJ IDEA 必备的快捷键大全