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
Commit e777b7b
Browse filesBrowse the repository at this point in the historyBrowse files
[fix](ivm) Give every data type a non-null default value for hidden slots
An IVM base table can carry a DATETIME sequence column through
function_column.sequence_col, which makes its hidden __DORIS_SEQUENCE_COL__ a
DATETIMEV2 slot. The incremental rewrite asks for the hidden slot's default
value when a join's snapshot side does not produce the column, but the
default-value handling only covered numeric, string-like and bitmap types, so
planning failed with "no default value for IVM hidden slot:
__DORIS_SEQUENCE_COL__, type=DATETIMEV2(6)".
Key changes:
- Add an abstract DataType#defaultValue() and implement it in every concrete type with that type's non-null default value.
- Resolve common hidden slot defaults through DataType#defaultValue() in IvmUtil instead of branching on type categories.
- Add an IVM regression suite covering a DATETIME sequence column with aggregate and plain join materialized views.
Unit Test:
- IvmUtilTest#testCommonHiddenSlots
- IvmUtilTest#testDefaultValueForEveryType
- regression-test/suites/mtmv_p0/ivm/test_ivm_datetime_sequence.groovy
0 commit comments