错误 - 蜂巢中分区表的滴列
如何在Hive中丢下一列分歧式桌子? 我有一个带有4列的外部表,例如:
column_a
column_b
column_c
dt_test-分区
i必须删除column_c,所以,我正在尝试以下命令:
ALTER TABLE TABLE REPLACE COLUMNS(column_A string, column_B string, dt_test timestamp);
以下错误发生:
Error while compiling statement: FAILED: Execution Error, return code 40000 from org.apache.hadoop.hive.ql.ddl.DDLTask. Partition column name dt_test conflicts with table columns.
谢谢!
How do I drop a column of a partiotioned table in Hive?
I have an external table with 4 columns, for example:
column_A
column_B
column_C
dt_test - partition
I have to drop the column_C, so, I'm trying the follow command:
ALTER TABLE TABLE REPLACE COLUMNS(column_A string, column_B string, dt_test timestamp);
The follow error occurs:
Error while compiling statement: FAILED: Execution Error, return code 40000 from org.apache.hadoop.hive.ql.ddl.DDLTask. Partition column name dt_test conflicts with table columns.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过以下命令删除column_c:
没有分区列: dt_t_test timestamp
You can drop column_c by the follow command:
not having the partition column: dt_test timestamp