Commit Graph

9528 Commits

Author SHA1 Message Date
fa3d6f0ffd [feat](binlog) Add replace table binlog #44263 (#44589)
cherry pick from #44263

Co-authored-by: Dongyang Li <lidongyang@selectdb.com>
2024-11-26 17:38:17 +08:00
bdca9cce3e [branch-2.1]add internal workload group (#42006) (#44592)
Add an internal workload group when Doris started, currently it mainly
used to manage compaction workload cpu usage.
pick #42006
2024-11-26 17:09:55 +08:00
e9f4615ddc branch-2.1: [Bug](function)window funnel function should support datetimev2 type get scale info #44420 (#44524)
Cherry-picked from #44420

Co-authored-by: zhangstar333 <zhangsida@selectdb.com>
2024-11-26 12:24:30 +08:00
07c81a6362 branch-2.1: [fix](nereids)lag and lead function's nullability is wrong #44050 (#44558)
Cherry-picked from #44050

Co-authored-by: starocean999 <lichi@selectdb.com>
2024-11-26 12:19:11 +08:00
37f4bf865f branch-2.1: [fix](mtmv)When compatibility fails, null pointers should not be reported #44464 (#44542)
Cherry-picked from #44464

Co-authored-by: zhangdong <zhangdong@selectdb.com>
2024-11-26 11:59:29 +08:00
b1393150a4 [opt] (binlog) Support Modify ViewDef binlog #41167 (#44519)
cherry pick from #41167

---------

Co-authored-by: yanmingfu <133083714+xiaoming12306@users.noreply.github.com>
Co-authored-by: yanmingfu <yanmingfu@baidu.com>
2024-11-26 10:34:12 +08:00
5eb433e7aa [branch-2.1] pick some pr from master (#44556)
pick #40468 #40535  #40763 #40855
2024-11-25 20:43:07 +08:00
9e0ece2452 branch-2.1: [enhance](mtmv)MTMV no longer generate cache when replaying logs #44283 (#44308)
Cherry-picked from #44283

Co-authored-by: zhangdong <zhangdong@selectdb.com>
2024-11-25 11:06:07 +08:00
5e9bda678c Pick some pr to branch 21 #42279 #44164 (#44369) 2024-11-23 03:28:38 +08:00
28d7e9f357 branch-2.1: [fix](config) fe config sync_image_timeout_second should not be masterOnly #43954 (#44384)
Cherry-picked from #43954

Co-authored-by: nsn_huang <38585669+nsnhuang@users.noreply.github.com>
Co-authored-by: huangwenbo04 <huangwenbo04@meituan.com>
2024-11-22 23:14:45 +08:00
e7095cea0b branch-2.1: [improvement](jdbc catalog) Optimize JDBC driver property settings #42923 (#44405)
Cherry-picked from #42923

Co-authored-by: zy-kkk <zhongyongkang@selectdb.com>
2024-11-22 22:53:35 +08:00
964b40ae1c [fix](bloom filter)Fix drop column with bloom filter index (#44361) (#44478)
pick #44361
2024-11-22 22:50:01 +08:00
090a2a48a1 branch-2.1: [Fix](Job)The INSERT execution failed, but the task record status is marked as successful. #44292 (#44443)
Cherry-picked from #44292

Co-authored-by: Calvin Kirs <guoqiang@selectdb.com>
2024-11-22 22:49:28 +08:00
3b2650c26d [fix-2.1](auto-partition) Fix unintended partition creation when insert overwrite auto detect for auto partition table (#44449) 2024-11-22 22:46:40 +08:00
33389ce691 branch-2.1: [enhance](regression-test) fix hudi incremental query bug and add hudi p2 cases #44003 (#44460)
Cherry-picked from #44003

Co-authored-by: Socrates <suyiteng@selectdb.com>
2024-11-22 22:42:59 +08:00
ec068049c7 branch-2.1: [fix](meta-cache) fix refreshOnlyCatalogCache when use_meta_cache = false #44363 (#44461)
Cherry-picked from #44363

Co-authored-by: Socrates <suyiteng@selectdb.com>
2024-11-22 22:41:10 +08:00
7d123edcf8 [fix](filesystem)Use simple authentication directly in S3FileSystem for 2.1 (#43636) (#44238)
bp: #43636
2024-11-22 11:45:56 +08:00
cd223327c8 [bug](auto partition)Fix insert failed because partition exprs of table is empty (#44391)
Fix insert failed because partition exprs of table is empty.

Revert PR: #43274
2024-11-22 11:16:23 +08:00
702abbff0f [Opt](orc)Optimize the merge io when orc reader read multiple tiny stripes. (#42004) (#44239)
bp #42004

Co-authored-by: kaka11chen <kaka11.chen@gmail.com>
2024-11-22 11:01:41 +08:00
346b89e683 [improve](routine load) adjust default values to make routine load more convenient to use (#42491) (#44377)
pick (#42491)

For a routine load job, it will be divided into many tasks, each of
which is a transaction. Currently, the default time
consumed(max_batch_interval) is 10 seconds. The benefits of increasing
this value are:
1. Larger batch consumption can lead to better performance.
2. Reducing the number of transactions can alleviate the pressure of
compaction and the conflicts of concurrent transaction submissions.

related doc: https://github.com/apache/doris-website/pull/1236/files
2024-11-21 23:05:11 +08:00
a258915e22 branch-2.1: [Fix](Job)Fix the Calculation of the First Trigger Time and Add a Single-Time Scheduling Compensation Logic #44268 (#44403)
Cherry-picked from #44268

Co-authored-by: Calvin Kirs <guoqiang@selectdb.com>
2024-11-21 18:24:36 +08:00
eb975f7846 [improvement](statistics)Change auto analyze max width to 300 and health threshold to 90. (#42104) (#44379)
backport: https://github.com/apache/doris/pull/42104
2024-11-21 17:35:41 +08:00
fbf573f8c8 [fix](hive)fix hive catalog miss partition that have special characters. #42906 (#44152)
cherry pick from #42906

---------

Co-authored-by: daidai <2017501503@qq.com>
2024-11-21 14:11:22 +08:00
3c1ac52f6a [fix](nereids)should set isForwardedToMaster and redirectStatus to null before fallback to legacy planner (#44332)
pick from master https://github.com/apache/doris/pull/44163
2024-11-21 10:25:35 +08:00
b63b97af25 [fix](create table) Enhance the robustness of time zone handling during table creation #41926 (#44281)
cherry pick from #41926
2024-11-20 10:37:54 +08:00
e0261ffb9c [fix](auth)Fix all priv not contain Show_view_priv (#43605) (#44289)
pick: https://github.com/apache/doris/pull/43605
2024-11-20 10:33:49 +08:00
1913e4e78d branch-2.1: [fix](mtmv) Fix partition track column fail when 'select *' used in related partition side #43531 (#43941)
Cherry-picked from #43531

Co-authored-by: seawinde <wusi@selectdb.com>
2024-11-19 20:27:13 +08:00
1b1e2e8a29 branch-2.1: [fix](profile) only printed for non-sink nodes in the merge profile. #44040 (#44252)
Cherry-picked from #44040

Co-authored-by: Mryange <yanxuecheng@selectdb.com>
2024-11-19 17:34:38 +08:00
2eb66c2609 [Fix](PaimonCatalog) fix the problem that paimon catalog can not access to OSS-HDFS #42585 (#44149)
cherry pick from #42585

Co-authored-by: Tiewei Fang <43782773+BePPPower@users.noreply.github.com>
2024-11-19 17:31:42 +08:00
fb20b7366e [fix](roup commit) remove unused code (#44015) (#44118)
pick https://github.com/apache/doris/pull/44015
2024-11-19 17:29:59 +08:00
81a8d9cb25 [fix](nereids)the column name should be case insensitive in tablet prune (#44206) 2024-11-19 17:28:46 +08:00
83208ee1a8 [pick](branch-2.1) pick #43960 #43929 #44177 (#44240)
pick #43960 #43929 #44177
2024-11-19 17:25:16 +08:00
83b74827aa branch-2.1: [fix](iceberg)Fix count(*) error with dangling delete problem #44039 (#44101)
Cherry-picked from #44039

Co-authored-by: wuwenchi <wuwenchi@selectdb.com>
2024-11-19 17:19:25 +08:00
e9371325bd branch-2.1: [fix](s3) do not replace https scheme if specified #44242 (#44250)
Cherry-picked from #44242

Co-authored-by: Mingyu Chen (Rayner) <morningman@163.com>
2024-11-19 17:12:42 +08:00
9db3f5b695 [refactor](hudi, iceberg) optimize some code #42636 (#44148)
cherry pick from #42636
2024-11-19 13:55:02 +08:00
ab7f5ba2ac branch-2.1: [fix](mtmv)After failure, one should quickly return to avoid repeated failures #44174 (#44204)
Cherry-picked from #44174

Co-authored-by: zhangdong <zhangdong@selectdb.com>
2024-11-19 11:05:15 +08:00
c3dc1863bd [opt](binlog) Support drop view binlog #39781 (#44113)
cherry pick from #39781

Co-authored-by: smallx <e9999e@163.com>
2024-11-19 10:41:34 +08:00
161d76328d branch-2.1: [fix](iceberg)Delete the data files when deleting the table #43441 (#44138)
Cherry-picked from #43441

Co-authored-by: wuwenchi <wuwenchi@selectdb.com>
2024-11-18 18:00:13 +08:00
b01b202b93 branch-2.1: [fix](Nereids) fold const return type does not matched with type coercion #44022 (#44141)
Cherry-picked from #44022

Co-authored-by: LiBinfeng <libinfeng@selectdb.com>
2024-11-18 17:57:15 +08:00
05e162074c branch-2.1: [fix](Export) fix a memory leak in the FE because of the ExportJob #44019 (#44089)
Cherry-picked from #44019

Co-authored-by: Tiewei Fang <ftw2139@163.com>
2024-11-18 16:54:53 +08:00
abbb12f93f branch-2.1: [fix](Nereids) simplify comparison predicate do wrong cast #44054 (#44119)
Cherry-picked from #44054

Co-authored-by: morrySnow <zhangwenxin@selectdb.com>
2024-11-18 16:53:51 +08:00
7f129433ec [improve](binlog) Reserve ids for binlog type allocation #43769 (#44103)
cherry pick from #43769
2024-11-18 16:17:19 +08:00
b776c2a983 branch-2.1: [fix](binlog) add modify comment binlog when replaying journal #43827 (#43986)
Cherry-picked from #43827

Co-authored-by: walter <maochuan@selectdb.com>
2024-11-18 15:06:25 +08:00
6c796af81b [improve](backup) Add the commit seq at the backup job level. #44049 (#44110)
cherry pick from #44049
2024-11-18 15:00:08 +08:00
8da1e8c084 branch-2.1: [feat](catalog)Support Pre-Execution Authentication for HMS Type Iceberg Catalog Operations. #43445 (#44129)
Cherry-picked from #43445

Co-authored-by: Calvin Kirs <guoqiang@selectdb.com>
2024-11-18 14:28:25 +08:00
84726582ab [fix](load) fix broker load progress due to retry (#42959) (#44123)
backport #42959
2024-11-18 14:08:10 +08:00
1fb1f3b211 [improvement](statistics)Skip auto analyze empty table. (#43865) (#44099)
backport: https://github.com/apache/doris/pull/43865
2024-11-18 13:17:22 +08:00
ea61206233 [pick](branch-2.1) pick #43281 (#44020)
pick #43281
2024-11-16 21:53:21 +08:00
44ed5d6120 [fix](analyzer) fixed the NullPointerException (#43269)
stack info :
```
2024-11-01 14:04:24,570 INFO (replayer|118) [EditLog.loadJournal():249] Begin to unprotect add partition. db = 50402 table = 3355198 partitionName = p2024110115
2024-11-01 14:04:24,572 INFO (replayer|118) [Env.replayJournal():2795] replayed journal id is 91381595, replay to journal id is 91381596
2024-11-01 14:04:24,572 INFO (replayer|118) [EditLog.loadJournal():259] Begin to unprotect drop partition. db = 50402 table = 23712088 partitionName = p2024110112
2024-11-01 14:04:24,573 INFO (replayer|118) [CatalogRecycleBin.recyclePartition():197] recycle partition[30713663-p2024110112] of table [23712088-real_result]
2024-11-01 14:04:24,573 INFO (replayer|118) [OlapTable.updateVisibleVersionAndTime():2740] updateVisibleVersionAndTime, tableName: real_result, visibleVersion, 1653, visibleVersionTime: 1730441064570
2024-11-01 14:04:24,573 WARN (mysql-nio-pool-109891|1159519) [StmtExecutor.executeByLegacy():985] execute Exception. stmt[76210227, 9822ba51b0b14b33-b8c313b570b26832]
java.lang.NullPointerException: null
        at org.apache.doris.qe.cache.CacheAnalyzer.buildCacheTableForOlapScanNode(CacheAnalyzer.java:705) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.cache.CacheAnalyzer.buildCacheTableList(CacheAnalyzer.java:516) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.cache.CacheAnalyzer.innerCheckCacheMode(CacheAnalyzer.java:259) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.cache.CacheAnalyzer.getCacheData(CacheAnalyzer.java:528) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.StmtExecutor.handleCacheStmt(StmtExecutor.java:1615) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.StmtExecutor.handleQueryStmt(StmtExecutor.java:1721) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.StmtExecutor.handleQueryWithRetry(StmtExecutor.java:810) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.StmtExecutor.executeByLegacy(StmtExecutor.java:903) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:597) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:523) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.ConnectProcessor.executeQuery(ConnectProcessor.java:328) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:206) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.MysqlConnectProcessor.handleQuery(MysqlConnectProcessor.java:260) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.MysqlConnectProcessor.dispatch(MysqlConnectProcessor.java:288) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.MysqlConnectProcessor.processOnce(MysqlConnectProcessor.java:341) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.mysql.ReadListener.lambda$handleEvent$0(ReadListener.java:52) ~[doris-fe.jar:1.2-SNAPSHOT]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_272]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_272]
        at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_272]
2024-11-01 14:04:24,578 INFO (replayer|118) [Env.replayJournal():2795] replayed journal id is 91381596, replay to journal id is 91381597
2024-11-01 14:04:24,578 INFO (replayer|118) [EditLog.loadJournal():249] Begin to unprotect add partition. db = 50402 table = 23712088 partitionName = p2024110115
2024-11-01 14:04:24,580 INFO (replayer|118) [Env.replayJournal():2795] replayed journal id is 91381597, replay to journal id is 91381598
2024-11-01 14:04:24,580 INFO (replayer|118) [EditLog.loadJournal():259] Begin to unprotect drop partition. db = 50402 table = 67267 partitionName = p2024110111
```

```
# partition get null here 
Partition partition = olapTable.getPartition(partitionId);

# Unable to obtain the specified partition in idToPartition and tempPartitions through partitionId
public Partition getPartition(long partitionId) {
        Partition partition = idToPartition.get(partitionId);
        if (partition == null) {
            partition = tempPartitions.getPartition(partitionId);
        }
        return partition;
}
```

Because there is reading and writing, the partition should have already
been deleted when reading again
2024-11-16 21:02:18 +08:00
90254d856d branch-2.1: [refactor](binlog) put recording dropped resource into a seperate method #43938 (#43966)
Cherry-picked from #43938

Co-authored-by: walter <maochuan@selectdb.com>
2024-11-16 20:55:58 +08:00