我是靠谱客的博主 魁梧板栗,这篇文章主要介绍hive添加分区报错 mismatched input 'add' expecting KW_EXCHANGE near 'table' in,现在分享给大家,希望可以做个参考。

It's not exactly a bug, just a side effect of Open Source when it's done by a motley crew of people all around the world with no "product owner" and no incentives to use a common programming style (or run extensive regression tests, or <insert your complaint here>).

在HiveQL中,alter命令不使用与create或select相同的语义 ; 

具体来说,您不能使用“ALTER DATABASE.TABLE”表示法。如果您尝试,那么HQL解析器就会失败并显示一条奇怪的错误消息。

你只需要alter tablename  即可,  不需要带database。

最后

以上就是魁梧板栗最近收集整理的关于hive添加分区报错 mismatched input 'add' expecting KW_EXCHANGE near 'table' in的全部内容,更多相关hive添加分区报错内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(107)

评论列表共有 0 条评论

立即
投稿
返回
顶部