当前位置:网站首页>NoViableAltException([email protected][2389:1: columnNameTypeOrConstraint : ( ( tableConstraint ) | ( columnNameT
NoViableAltException([email protected][2389:1: columnNameTypeOrConstraint : ( ( tableConstraint ) | ( columnNameT
2022-06-27 06:08:00 【啊仪的小菜脯】
问题来源:
近期使用 hive 数据仓库工具时,安装使用均无异常,启动 hive 也很成功,也能通过命令 show databases; 查询 hive 所有的数据库信息,但是当执行创建表格(无论是内部表还是外部分区表等)时就一直报错,网上找了很多教程都无济于事,最后自己找到原因,特此记录。
解决方法:
首先第一种原因,也是最有可能犯的错误就是标点符号错误。我在本机输入的创建表格语句如下图所示:

再看我的错误日志输出,如下图:

可以看到最下面一行指明错误位置在第 3 行第 0 列,回到命令行找到该位置为一个单引号,经过查阅大量资料但是依然无济于事后焕然大悟,sql 语句应该用的是着重号 ` ,不是单引号 ' 。可以看下面两张截图的对比(第一张是单引号,结果报错;第二张是着重号,结果成功)。


第二种错误就是变量名起的不当导致的,比如当你的变量名为 time 时,系统照样会报 3字头 错误,提示信息也一样, 这个时候只需要避免你起的变量名和系统关键字发生冲突即可。
边栏推荐
- [cocos creator 3.5.1] addition of coordinates
- Multithreading basic part part 1
- Nlp-d62-nlp competition d31 & question brushing D15
- 免费的 SSH 和 Telnet 客户端PuTTY
- The restart status of the openstack instance will change to the error handling method. The openstack built by the container restarts the compute service method of the computing node and prompts the gi
- 开门小例子学习十种用例图
- 使用CSDN 开发云搭建导航网站
- JVM class loading mechanism
- NEON优化1:软件性能优化、降功耗怎么搞?
- Proxy-Reflect使用详解
猜你喜欢

The restart status of the openstack instance will change to the error handling method. The openstack built by the container restarts the compute service method of the computing node and prompts the gi

js实现双向数据绑定

Multithreading basic part2

Double position relay rxmd2-1mrk001984 dc220v

Formation and release of function stack frame

美摄云服务方案:专为轻量化视频制作场景打造

Using CSDN to develop cloud and build navigation websites

Two position relay rxmvb2 r251 204 110dc

Assembly language - Wang Shuang Chapter 13 int instruction - Notes

Small program of C language practice (consolidate and deepen the understanding of knowledge points)
随机推荐
JVM tuning ideas
427-二叉树(617.合并二叉树、700.二叉搜索树中的搜索、98. 验证二叉搜索树、530.二叉搜索树的最小绝对差)
JVM整体结构解析
项目-h5列表跳转详情,实现后退不刷新,修改数据则刷新的功能(记录滚动条)
Force buckle 179, max
线程间等待与唤醒机制、单例模式、阻塞队列、定时器
机 器 学 习
力扣 179、最大数
Small program of C language practice (consolidate and deepen the understanding of knowledge points)
How to check the frequency of memory and the number of memory slots in CPU-Z?
Assembly language - Wang Shuang Chapter 3 notes and experiments
汇编语言-王爽 第11章 标志寄存器-笔记
树莓派4B上运行opcua协议DEMO接入kubeedge
Multithreading basic part part 1
函数栈帧的形成与释放
表单校验 v-model 绑定的变量,校验失效的解决方案
30 SCM common problems and solutions!
693. 交替位二进制数
JS to implement bidirectional data binding
Add widget on qlistwidgetitem