为了更快的定位您的问题,请提供以下信息,谢谢
【详述】
JDBC Catalog创建
CREATE EXTERNAL CATALOG aaa
PROPERTIES
(
"type"="jdbc",
"user"="xxx",
"password"="xxx",
"jdbc_uri"="xxx",
"driver_url"="xxx",
"driver_class"="org.postgresql.Driver"
);
物化视图创建
CREATE MATERIALIZED VIEW somethin_detail
DISTRIBUTED BY HASH(`id`)
REFRESH ASYNC START('2022-11-17 08:00:00') EVERY (interval 1 day)
AS SELECT
*
FROM aaa.public.bbb;
【背景】基于JDBCCatalog创建物化视图在Refresh时报错
【业务影响】暂无
【StarRocks版本】3.1.4
【集群规模】1fe(1 leader)+3be(fe与be分别部署)
【联系方式】18618264324@163.com
【附件】
FE报错:
2023-11-17 00:56:50,199 WARN (pool-23-thread-1|814946) [PartitionBasedMvRefreshProcessor.doMvRefresh():281] Refresh mv something_detail failed: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
2023-11-17 00:56:50,199 WARN (pool-23-thread-1|814946) [TaskRunExecutor.lambda$executeTaskRun$0():54] failed to execute TaskRun.
java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
at com.google.common.collect.RegularImmutableList.get(RegularImmutableList.java:77) ~[spark-dpp-1.0.0.jar:?]
at com.starrocks.connector.PartitionUtil.getPartitionNameWithPartitionInfo(PartitionUtil.java:387) ~[starrocks-fe.jar:?]
at com.starrocks.catalog.MaterializedView.getUpdatedPartitionNamesOfExternalTable(MaterializedView.java:817) ~[starrocks-fe.jar:?]
at com.starrocks.catalog.MaterializedView.getUpdatedPartitionNamesOfTable(MaterializedView.java:871) ~[starrocks-fe.jar:?]
at com.starrocks.catalog.MaterializedView.getUpdatedPartitionNamesOfTable(MaterializedView.java:549) ~[starrocks-fe.jar:?]
at com.starrocks.scheduler.PartitionBasedMvRefreshProcessor.needToRefreshTable(PartitionBasedMvRefreshProcessor.java:766) ~[starrocks-fe.jar:?]
at com.starrocks.scheduler.PartitionBasedMvRefreshProcessor.isNonPartitionedMVNeedToRefresh(PartitionBasedMvRefreshProcessor.java:788) ~[starrocks-fe.jar:?]
at com.starrocks.scheduler.PartitionBasedMvRefreshProcessor.getPartitionsToRefreshForMaterializedView(PartitionBasedMvRefreshProcessor.java:860) ~[starrocks-fe.jar:?]
at com.starrocks.scheduler.PartitionBasedMvRefreshProcessor.getPartitionsToRefreshForMaterializedView(PartitionBasedMvRefreshProcessor.java:822) ~[starrocks-fe.jar:?]
at com.starrocks.scheduler.PartitionBasedMvRefreshProcessor.doMvRefresh(PartitionBasedMvRefreshProcessor.java:232) ~[starrocks-fe.jar:?]
at com.starrocks.scheduler.PartitionBasedMvRefreshProcessor.processTaskRun(PartitionBasedMvRefreshProcessor.java:185) ~[starrocks-fe.jar:?]
at com.starrocks.scheduler.TaskRun.executeTaskRun(TaskRun.java:189) ~[starrocks-fe.jar:?]
at com.starrocks.scheduler.TaskRunExecutor.lambda$executeTaskRun$0(TaskRunExecutor.java:47) ~[starrocks-fe.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:829) ~[?:?]