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
Refresh of asynchronous materialized view fails if base table is partitioned using expression partitioning.
Facts:
Cluster is in shared-data mode.
Base table is partitioned on string data type column using expression partitioning
Asynchronous materialized view is also partitioned on same column as base table using expression partitioning.
Steps to reproduce the behavior (Required)
CREATE TABLE `test_base_tbl` (
col1 varchar(100),
col2 varchar(100),
col3 bigint
) ENGINE=OLAP
PRIMARY KEY (col1)
PARTITION BY (col1)
DISTRIBUTED BY HASH(col1) BUCKETS 5
ORDER BY (col2)
PROPERTIES (
"persistent_index_type" = "CLOUD_NATIVE"
);
insert into test_base_tbl values
('a.com', 'val1', 100),
('A.com', 'val1', 200),
('A.Com', 'val1', 300)
CREATE MATERIALIZED VIEW `test_async_mv`
PARTITION BY (col1)
DISTRIBUTED BY HASH(col1)
REFRESH MANUAL
PROPERTIES (
"query_rewrite_consistency" = "LOOSE",
"session.enable_spill" = "true",
"datacache.enable" = "true",
"enable_async_write_back" = "false",
"storage_volume" = "builtin_storage_volume"
)
AS SELECT col1, sum(col3) from test_base_tbl group by col1;
Expected behavior (Required)
Refresh of this asynchronous materialized view should be successful.
Real behavior (Required)
Refresh of this asynchronous materialized view fails with the following error:
Refresh materialized view test_async_mv failed after retrying 1 times(try-lock 0 times), error-msg : com.starrocks.sql.analyzer.SemanticException: Getting analyzing error. Detail message: Duplicate partition name pA2ecom.
at com.starrocks.sql.analyzer.AlterTableClauseAnalyzer.visitAddPartitionClause(AlterTableClauseAnalyzer.java:1079)
at com.starrocks.sql.analyzer.AlterTableClauseAnalyzer.visitAddPartitionClause(AlterTableClauseAnalyzer.java:111)
at com.starrocks.sql.ast.AddPartitionClause.accept(AddPartitionClause.java:80)
at com.starrocks.sql.ast.AstVisitor.visit(AstVisitor.java:71)
at com.starrocks.sql.analyzer.AlterTableClauseAnalyzer.analyze(AlterTableClauseAnalyzer.java:119)
at com.starrocks.scheduler.mv.MVPCTRefreshListPartitioner.addListPartitions(MVPCTRefreshListPartitioner.java:378)
at com.starrocks.scheduler.mv.MVPCTRefreshListPartitioner.syncAddOrDropPartitions(MVPCTRefreshListPartitioner.java:113)
at com.starrocks.scheduler.PartitionBasedMvRefreshProcessor.syncPartitions(PartitionBasedMvRefreshProcessor.java:914)
at com.starrocks.scheduler.PartitionBasedMvRefreshProcessor.doRefreshMaterializedView(PartitionBasedMvRefreshProcessor.java:413)
at com.starrocks.scheduler.PartitionBasedMvRefreshProcessor.doRefreshMaterializedViewWithRetry(PartitionBasedMvRefreshProcessor.java:368)
at com.starrocks.scheduler.PartitionBasedMvRefreshProcessor.doMvRefresh(PartitionBasedMvRefreshProcessor.java:327)
at com.starrocks.scheduler.PartitionBasedMvRefreshProcessor.processTaskRun(PartitionBasedMvRefreshProcessor.java:199)
at com.starrocks.scheduler.TaskRun.executeTaskRun(TaskRun.java:272)
at com.starrocks.scheduler.TaskRunExecutor.lambda$executeTaskRun$0(TaskRunExecutor.java:58)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
StarRocks version (Required)
3.3.5-8fold-1210-aa794ea
The text was updated successfully, but these errors were encountered:
Refresh of asynchronous materialized view fails if base table is partitioned using expression partitioning.
Facts:
Steps to reproduce the behavior (Required)
Expected behavior (Required)
Refresh of this asynchronous materialized view should be successful.
Real behavior (Required)
Refresh of this asynchronous materialized view fails with the following error:
StarRocks version (Required)
3.3.5-8fold-1210-aa794ea
The text was updated successfully, but these errors were encountered: