gpt4 book ai didi

vector - 创建分区错误 - HINT : If the column does not currently contain nulls, 推进 AHM

转载 作者:行者123 更新时间:2023-12-02 07:18:51 28 4
gpt4 key购买 nike

我正在尝试按年份对现有表进行分区。(没有现有分区)

alter table test_table PARTITION BY EXTRACT (year FROM date_c);

但是好像有一些错误

ROLLBACK 2628: Column "date_c" in PARTITION BY expression is not allowed, since it contains NULL values **HINT: If the column does not currently contain nulls, advance the AHM and purge the nulls from the delete vectors before altering the partitioning**

该列没有任何空值,因此请按照提示进行操作。我确实将AHM推进到现在。但是如何从删除向量中清除空值呢?

最佳答案

将AHM(古代历史标记)设置为最大允许值后,可以使用PURGE_TABLE()从物理存储中永久删除删除数据。

MAKE_AHM_NOW()函数推进纪元并对所有投影执行移出操作。然后将 AHM 设置为 LGE(Last Good Epoch)。此时,任何历史数据(包括删除向量)都将丢失并且无法回滚。它不会自动清除旧数据。

关于vector - 创建分区错误 - HINT : If the column does not currently contain nulls, 推进 AHM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22005289/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com