You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] replace_if_not_null not found in vectorized compaction #9374
I also had this problem the other day, but it disappeared after rebase master...
@xinyiZzz
I reproduce this bug using up-to-date master branch. In fact, if you have a nullable column with REPLACE NOT NULL agg type and turn enable_vectorized_compaction on and then you can also reproduce it again.
In my case, I use a column ``last_update_date DATETIME REPLACE_IF_NOT_NULL DEFAULT "1970-01-01 00:00:00" to reproduce this bug
The reason why the bug disappeared after I rebase master was because config::enable_vectorized_compaction was added, and vmerge_rowsets was not used...
Activity
xinyiZzz commentedon May 5, 2022
I also had this problem the other day, but it disappeared after rebase master...
Gabriel39 commentedon May 5, 2022
@xinyiZzz
I reproduce this bug using up-to-date master branch. In fact, if you have a nullable column with
REPLACE NOT NULLagg type and turnenable_vectorized_compactionon and then you can also reproduce it again.In my case, I use a column ``last_update_date
DATETIME REPLACE_IF_NOT_NULL DEFAULT "1970-01-01 00:00:00"to reproduce this bugBiteTheDDDDt commentedon May 5, 2022
Do you have a sql that can reproduce this error?
Gabriel39 commentedon May 5, 2022
@BiteTheDDDDt
I create table using statement:
CREATE TABLE IF NOT EXISTS compaction_tbl
(
user_idLARGEINT NOT NULL COMMENT "用户id",dateDATE NOT NULL COMMENT "数据灌入日期时间",cityVARCHAR(20) COMMENT "用户所在城市",ageSMALLINT COMMENT "用户年龄",sexTINYINT COMMENT "用户性别",last_visit_dateDATETIME REPLACE DEFAULT "1970-01-01 00:00:00" COMMENT "用户最后一次访问时间",last_update_dateDATETIME REPLACE_IF_NOT_NULL DEFAULT "1970-01-01 00:00:00" COMMENT "用户最后一次更新时间",last_visit_date_not_nullDATETIME REPLACE NOT NULL DEFAULT "1970-01-01 00:00:00" COMMENT "用户最后一次访问时间",costBIGINT SUM DEFAULT "0" COMMENT "用户总消费",max_dwell_timeINT MAX DEFAULT "0" COMMENT "用户最大停留时间",min_dwell_timeINT MIN DEFAULT "99999" COMMENT "用户最小停留时间",hll_colHLL HLL_UNION NOT NULL COMMENT "HLL列",bitmap_colBitmap BITMAP_UNION NOT NULL COMMENT "bitmap列")
AGGREGATE KEY(
user_id,date,city,age,sex)DISTRIBUTED BY HASH(user_id) PROPERTIES("replication_num" = "1");
Insert some test data and after a while, background compaction task will core.
xinyiZzz commentedon May 5, 2022
The reason why the bug disappeared after I rebase master was because config::enable_vectorized_compaction was added, and vmerge_rowsets was not used...
My reproduce case is similar.