Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ private void analyzeKeys() {
if (type.isFloatLikeType() || type.isStringType() || type.isJsonType()
|| catalogType.isComplexType() || type.isBitmapType() || type.isHllType()
|| type.isQuantileStateType() || type.isJsonType() || type.isStructType()
|| column.getAggType() != null) {
|| column.getAggType() != null || type.isVariantType()) {
break;
}
keys.add(column.getName());
Expand Down
12 changes: 12 additions & 0 deletions regression-test/suites/variant_p0/mtmv.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,16 @@ suite("regression_test_variant_mtmv"){
"""
def job_name_2 = getJobName(db, "mv2")
waitingMTMVTaskFinished(job_name_2)

sql """DROP TABLE IF EXISTS tbl1"""
sql """
CREATE TABLE tbl1 ( pk int, var VARIANT NULL ) engine=olap DUPLICATE KEY(pk) distributed by hash(pk) buckets 10 properties("replication_num"
= "1");
"""
sql """insert into tbl1 values (1, '{"a":1}')"""
sql """DROP MATERIALIZED VIEW IF EXISTS tbl1_mv"""
sql """
CREATE MATERIALIZED VIEW tbl1_mv BUILD IMMEDIATE REFRESH AUTO ON MANUAL DISTRIBUTED BY RANDOM BUCKETS 10 PROPERTIES
('replication_num' = '1') AS SELECT * FROM tbl1;
"""
}