3.0.2,物化视图创建失败: current join type is LEFT_OUTER_JOIN

Viewed 24

doris版本:3.0.2
当创建物化视图的时候,提示如下,

errCode = 2, detailMessage = Unable to find a suitable base table for partitioning, the fail reason is can't not find valid partition track column, because partition column is in un supported join null generate side, current join type is LEFT_OUTER_JOIN

在文档 物化视图的常见问题 中,有一段解释如图:
1732700704369.png
物化视图分区字段引用列在 join 的 null 产生端,比如 left join 的右侧

我的理解是当我在2张表关联的时候,select *** from A left join B ,这个分区的字段是由B表产出,不知我理解是否正常。如果我理解正常,现在这个分区列是由A表产出,并不是B表,为什么会报这个错误,烦请指正,谢谢。

我的sql大致如下:

select t.date, c.NAME,t.tid FROM (select a.cid,a.date,b.tid from A left join B on a.id = b.id) t left join c ON c.id = t.cid

分区字段为date,是由A表产出。

1 Answers

可能是分区物化视图的限制导致。
可以补齐下具体表结构和异步物化视图创建语句。