Open zhangle1250 opened 2 months ago
I think reason is from mydb.dual
, sr don't support db
.dual, you can try from dual
not from mydb.dual
.
BTW, the stack will happened when concurrent insert overwrite partition, but it's don't effect use, it's an internal task that can fail
Steps to reproduce the behavior (Required)
CREATE TABLE '...' CREATE TABLE
MV_LEAF_EARLIER_SINGLE_AGG_3aa5cd80
(4137a775e0654dd98125f6c8939e52ad
varchar(255) NULL COMMENT "",dt
date NULL COMMENT "",120ef87795504884a0b3f453a062276a
double NULL COMMENT "" ) ENGINE=OLAP DUPLICATE KEY(4137a775e0654dd98125f6c8939e52ad
) PARTITION BY RANGE(dt
) (PARTITION p20230101 VALUES [("2023-01-01"), ("2023-01-02")), PARTITION p20230102 VALUES [("2023-01-02"), ("2023-01-03")), PARTITION p20230103 VALUES [("2023-01-03"), ("2023-01-04")), PARTITION p20230104 VALUES [("2023-01-04"), ("2023-01-05")), PARTITION p20230105 VALUES [("2023-01-05"), ("2023-01-06")), PARTITION p20230106 VALUES [("2023-01-06"), ("2023-01-07")), PARTITION p20230107 VALUES [("2023-01-07"), ("2023-01-08")), PARTITION p20230108 VALUES [("2023-01-08"), ("2023-01-09"));The following code is executed concurrently:
public class Test1 { public static void main(String[] args) throws SQLException, ClassNotFoundException, InterruptedException {
Expected behavior (Required)
The program executes correctly.
Real behavior (Required)
2024-08-20 21:46:58.332+08:00 WARN (analyze-task-concurrency-pool-0|485) [StatisticExecutor.collectStatistics():285] Collect statistics error com.starrocks.sql.analyzer.SemanticException: Getting analyzing error. Detail message: Unknown partition 'p20240101_7087647' in table 'MV_LEAF_EARLIER_SINGLE_AGG_3aa5cd80'. at com.starrocks.sql.analyzer.QueryAnalyzer.resolveTable(QueryAnalyzer.java:1056) ~[starrocks-fe.jar:?] at com.starrocks.sql.analyzer.QueryAnalyzer.access$200(QueryAnalyzer.java:99) ~[starrocks-fe.jar:?] at com.starrocks.sql.analyzer.QueryAnalyzer$Visitor.resolveTableRef(QueryAnalyzer.java:298) ~[starrocks-fe.jar:?] at com.starrocks.sql.analyzer.QueryAnalyzer$Visitor.visitSelect(QueryAnalyzer.java:196) ~[starrocks-fe.jar:?] at com.starrocks.sql.analyzer.QueryAnalyzer$Visitor.visitSelect(QueryAnalyzer.java:116) ~[starrocks-fe.jar:?] at com.starrocks.sql.ast.SelectRelation.accept(SelectRelation.java:242) ~[starrocks-fe.jar:?] at com.starrocks.sql.analyzer.QueryAnalyzer$Visitor.process(QueryAnalyzer.java:121) ~[starrocks-fe.jar:?] at com.starrocks.sql.analyzer.QueryAnalyzer$Visitor.visitQueryRelation(
StarRocks version (Required)
select current_version()