Commit Graph

8151 Commits

Author SHA1 Message Date
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
6fe00c7244 [fix](mtmv) fix mtmv deadlock issue (#43376) (#43428)
pick: https://github.com/apache/doris/pull/43376
2024-11-16 20:49:09 +08:00
8fcce4f591 [improvement](nereids) support extract from disjunction in join on condition (#38479) (#43670)
cherry-pick #38479 to branch-2.1
2024-11-16 17:15:39 +08:00
03eae760c4 branch-2.1: [fix](catalog) rebuild idToCatalog map after replay #43772 (#43963)
Cherry-picked from #43772

Co-authored-by: Mingyu Chen (Rayner) <morningman@163.com>
2024-11-16 16:23:39 +08:00
42b190cfad branch-2.1: [fix](dynamic partition) data lost with very small dynamic_partition.start #43898 (#44033)
Cherry-picked from #43898

Co-authored-by: camby <cambyzhu@tencent.com>
2024-11-16 16:21:34 +08:00
d49ef5bf1c [branch-2.1](DDL) Fix wrong show create table stmt for auto list multi-columns partition (#43967) (#44007)
pick https://github.com/apache/doris/pull/43967
2024-11-16 16:16:44 +08:00
269c2c844b branch-2.1: [opt](paimon)Optimize the display of splitstate to prevent too many splits #43982 (#44060)
Cherry-picked from #43982

Co-authored-by: wuwenchi <wuwenchi@selectdb.com>
2024-11-16 16:10:25 +08:00
91dcc0e194 branch-2.1: [fix](mtmv) Fix generate hyper graph wrongly when has filter which can not push down #43539 (#43946)
Cherry-picked from #43539

Co-authored-by: seawinde <wusi@selectdb.com>
2024-11-16 16:08:36 +08:00
7d43cc2274 [improve](load) show 99.99% instead of 100.00% in progess when load is not finished (#43224) (#44034)
backport #43224
2024-11-16 10:57:47 +08:00
72bfd1c7a4 [opt](binlog) Support modify comment binlog #39783 (#43821)
cherry pick from #39783

Co-authored-by: smallx <e9999e@163.com>
2024-11-15 19:46:15 +08:00
edd9015de3 [branch-2.1](function) fix error result in auto partition name (#41130) (#43977)
pick https://github.com/apache/doris/pull/41130
https://github.com/apache/doris/pull/41372

---------

Co-authored-by: zhaochangle <zhaochangle@selectdb.com>
2024-11-15 19:11:42 +08:00
74d87c9d4e branch-2.1: [performance](load) fix broker load scan ranges for unsplittable files #43161 (#43976)
Cherry-picked from #43161

Co-authored-by: Kaijie Chen <chenkaijie@selectdb.com>
2024-11-15 00:57:38 +08:00
8554c06337 [opt](fe) Use table.readLock in TabletStatMgr for updating statistics (#39612) (#43937) 2024-11-14 19:44:16 +08:00
4f2a67251a [opt](fe) Optimize fe show table statistics (#35457) (#43858) 2024-11-14 12:41:29 +08:00
59c8663abe [fix](nereids) convert stringLikeLiteral to double should use byte length (#43776) branch-2.1 (#43911)
### What problem does this PR solve?
pick #43776

The optimizer maps different data types to Double, allowing for a
unified comparison of literals.
StringLikeLiteral is regarded as a long int, and map the long int to
double.
To extract the first N bytes from a string, you should use
String.getBytes().length instead of String.length().
、
2024-11-14 11:15:17 +08:00
b707156169 branch-2.1: [Fix](multi-catalog)Fixed incorrect parameter transmission when obtaining files by hms partition and incorrect parameter transmission concurrently. #43767 (#43871)
Cherry-picked from #43767

Co-authored-by: Qi Chen <chenqi@selectdb.com>
2024-11-13 21:42:18 +08:00