doris版本:2.1
我有一个表a
分区如下:
PARTITION BY RANGE(_mt_datetime
) (PARTITION p20240801 VALUES [('1970-01-01 08:00:00'), ('2024-08-01 00:00:00'))......
基于表a创建物化逻辑视图逻辑如下:
CREATE MATERIALIZED VIEW mv2
BUILD DEFERRED REFRESH AUTO ON MANUAL
PARTITION BY (date)
DISTRIBUTED BY RANDOM BUCKETS 2 PROPERTIES ('replication_num' = '1')
as
select
date_trunc(_mt_datetime, 'day') as date from a
group by 1
总是提示:“partition values not equal, beginTruncTime: 1970-01-01 00:00:00.000000, endTruncTime: 2024-07-31 00:00:00.000000 ” 这种错误
可能是什么原因?我的主要诉求是将时间列上卷到天作为新的分区