[英]Not able to partition the hive table
我已经创建了带有3个分区的表。 我想在表中添加一个新列作为分区。
可能吗?
如果您要在已分区的配置单元表中创建新的分区列。 我会说不,你不能这样做。 例如,假设您创建了一个这样的餐桌办公室
蜂巢>描述办公室;
Empid int empname字符串 地址字符串 年字符串 月字符串 日串
分区信息 col_name data_type
年字符串 月字符串 日串 据我所知,您无法添加另一列“小时”。 因此,如果要添加新的分区列,一种方法是通过使用新的分区方案创建新表并将旧数据移动到新表中。
但是,如果您要为年,月,日列添加另一个分区,您肯定可以这样做。 让我添加图片以显示如何执行此操作。
[英]Not able to partition table on Hive- Error in metadata
[英]Hive: Create Table and Partition By
[英]partition table in hive
[英]Hive bucketing and partition for existing table
[英]creating partition in external table in hive
[英]Hive Table partition with column in the middle
[英]Add partition to hive table with no data
[英]Hive partition table query optimisation
[英]Hive External Table - Drop Partition
[英]Partition Hive table by existing field?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.