我有以下配置单元表,其中eventdate是分区列:
hive> describe item_pages;
siteid int the site identifier for the host domain
externalsessionid string the instrumented sessionid
item_pages array<string> an array of all distinct page IDs
eventdate string None
# Partition Information
# col_name data_type comment
eventdate string None
有没有办法可以为分区列的表元数据添加注释?将eventdate分区列作为常规列处理时,我得到以下响应:
hive> ALTER TABLE da_itempages CHANGE eventdate eventdate string COMMENT 'the PST calendar date of the item page views in YYYY-MM-DD format'
Column 'eventdate' does not exists
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
(示例命令与将成功插入到每个describe语句具有列的列中的注释完全相同的命令。)