Commit Graph

10116 Commits

Author SHA1 Message Date
abb9c88a3f branch-2.1: [improve](hive row count)Log stack info when fetch hive row count fail. (#52795) (#52849)
backport: https://github.com/apache/doris/pull/52795
2025-07-09 09:57:24 +08:00
b2e70e938c branch-2.1: [improve](statistics)Specify column name when insert into stat table.(#52441) (#52633)
backport: https://github.com/apache/doris/pull/52441
2025-07-04 14:21:01 +08:00
b0e83ca7d1 branch-2.1: [fix](fe) multi statements different behavior in master and follower (#52144) (#52632)
pick https://github.com/apache/doris/pull/52144
2025-07-03 14:53:19 +08:00
3c88f4df70 [opt](nereids) Improve sql parse performance by avoid parse twice when collect hint map (#52627)
cherry pick part of code from
pr: https://github.com/apache/doris/pull/40202
commitId: 81f3c484 


### What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

### Release note

None

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
2025-07-03 08:56:16 +08:00
d374b6e1e4 [fix](replica) skip missing version should care catchup (#49999) (#50094) (#52386)
pick  (#49999) (#50094)
2025-07-03 08:32:06 +08:00
06bbfd1eea branch-2.1: [fix](nereids) fix tanh cosntant folding #52100 (#52527)
Cherry-picked from #52100

Co-authored-by: admiring_xm <86338598+wumeibanfa@users.noreply.github.com>
2025-07-02 10:21:10 +08:00
fecc6ac802 branch-2.1: [fix](nereids) exceed expr limit error not fallback to legacy planner (#52431)
### What problem does this PR solve?

Legacy planner check expr limit is not reliable. When planner expr
change, it need explict call expr.analyse to check the limit.

Nereids planner check expr limit at expr's construct function, it's
reliable.

So nereids don't fallback to legacy planner when met exceed expr limit
error, this can avoid legacy planner forget to check the expr limit and
use a lot of memory.


### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
2025-06-29 08:34:50 +08:00
8480691871 branch-2.1: [fix](hive) ignore all hidden dir and files #52286 (#52324)
Cherry-picked from #52286

Co-authored-by: Mingyu Chen (Rayner) <morningman@163.com>
2025-06-28 14:23:27 +08:00
4999816ae6 branch-2.1: [fix](map) fix createMap function #52231 (#52401)
Cherry-picked from #52231

Co-authored-by: amory <wangqiannan@selectdb.com>
2025-06-28 14:19:48 +08:00
c671a09a56 branch-2.1: [fix](iceberg)Ensure proper authentication context before accessing Iceberg Catalog #52149 (#52234)
Cherry-picked from #52149

Co-authored-by: Calvin Kirs <guoqiang@selectdb.com>
Co-authored-by: Tiewei Fang <fangtiewei@selectdb.com>
2025-06-28 10:59:03 +08:00
95f10aa8a1 branch-2.1:[fix](mtmv) fix when compatible fail, will throw NPE (#49875) (#52273)
pick: https://github.com/apache/doris/pull/49875
2025-06-28 10:54:44 +08:00
e029e420ae branch-2.1: [fix](nereids) fix calc repeat property stack overflow #52159 (#52188)
cherry pick from #52159
2025-06-28 10:22:48 +08:00
5d20a04b32 branch-2.1: [fix](auth)Only treat admin@% and root@% as system users. #50904 (#52283)
Cherry-picked from #50904

Co-authored-by: zhangdong <zhangdong@selectdb.com>
2025-06-28 10:11:13 +08:00
d7184af32b branch-2.1: [fix](cluster)fix fe host may be contains Scope Identifier #52076 (#52398)
Cherry-picked from #52076

Co-authored-by: zhangdong <zhangdong@selectdb.com>
2025-06-28 10:09:22 +08:00
307c047377 branch-2.1: [fix](Prepared Statment) Fix exec prepared insert stmt in non master error (#48689) (#52265)
backport: https://github.com/apache/doris/pull/48689

Co-authored-by: Lijia Liu <liutang123@yeah.net>
2025-06-28 09:57:53 +08:00
16777c7235 branch-2.1: [fix](nereids) correct the log class in the command (#43896) (#52253)
backport: https://github.com/apache/doris/pull/43896

Co-authored-by: Yao-MR <yao.mr.cn@gmail.com>
2025-06-25 14:51:30 +08:00
43b99ddd7a [fix](mtmv) Fix compensate union all wrongly when partition mv use partition external table (#52218)
Fix compensate union all wrongly when partition mv use partition
external table

in test mv/external_table/part_partition_invalid.groovy
order_qt_after_modify_data_and_refresh_catalog data should be as
following:
```
1	2	1	2023-10-17	2023-10-17
2	2	2	2023-10-18	2023-10-18
3	2	3	2023-10-19	2023-10-19
```


### What problem does this PR solve?

Issue Number: close #xxx

Related PR: #49514 

Problem Summary:

### Release note

None

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [x] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
2025-06-25 14:50:47 +08:00
6dca968e96 branch-2.1:[fix](planner)Fix the concurrency issue caused by Expr setting member… (#52194)
… variables (#51389)

pick: https://github.com/apache/doris/pull/51389
2025-06-25 11:45:27 +08:00
b3588b01c0 branch-2.1: [improvement](nereids)Support GROUP BY ... WITH ROLLUP syntax #51948 (#51978)
Cherry-picked from #51948

Co-authored-by: James <lijibing@selectdb.com>
2025-06-25 09:59:02 +08:00
93d7eb57bc branch-2.1: [fix](hudi catalog) Fix the Kerberos authentication error when querying hudi table #51713 (#51903)
Cherry-picked from #51713

Co-authored-by: heguanhui <hgh_wy163mail@163.com>
2025-06-24 14:20:47 +08:00
667510f71b [branch-2.1]Remove memory sum check (#52055) 2025-06-24 14:08:28 +08:00
347c1e1e63 [branch-2.1]refactor workload group cpu hard limit (#51278) (#51382)
pick #51278
2025-06-23 14:45:45 +08:00
d194014914 [fix](ip) fix ip type in IndexDef support (#50637)
### What problem does this PR solve?
only in branch-2.1  we do not support old indexDef to support Ip type 
and fix array_contains && arrays_overlap for with type array<ip> which
backport: https://github.com/apache/doris/pull/50637
Issue Number: close #xxx
2025-06-20 19:51:38 +08:00
a42fe9f6e8 branch-2.1: [fix](metadata) replace view will break view's metadata #51058 (#52043)
cherry-pick from #51058
2025-06-20 19:49:03 +08:00
f58b3204ca branch-2.1: [Fix](Iceberg-hadoop-catalog)Fix Kerberos-authenticated HadoopCatalog insert failures due to missing kerberos credentials #51245 (#51337)
Cherry-picked from #51245

---------

Co-authored-by: Calvin Kirs <guoqiang@selectdb.com>
2025-06-20 14:12:25 +08:00
614c7f8579 [fix](restore) Analyze idx meta in Olap Table after restore commit (#51883)
reproduce: backup and restore Table or restart fe, then insert


before:
```
desc tbl all
*************************** 26. row ***************************
    IndexName: idx
IndexKeysType: AGG_KEYS
        Field: mv_date_format(hours_add(happen_time, 1), '%Y-%m-%d %H:00:00')
         Type: varchar(65533)
 InternalType: varchar(65533)
         Null: Yes
          Key: true
      Default: NULL
        Extra: 
      Visible: true
   DefineExpr:
  WhereClause:

insert into wrong
[ANALYSIS_ERROR]TStatus: errCode = 2, detailMessage = column has no source field, column=mva_SUM__CASE WHEN 1 IS NULL THEN 0 ELSE 1 END
```

now
```
desc tbl all
*************************** 26. row ***************************
    IndexName: idx
IndexKeysType: AGG_KEYS
        Field: mv_date_format(hours_add(happen_time, 1), '%Y-%m-%d %H:00:00')
         Type: varchar(65533)
 InternalType: varchar(65533)
         Null: Yes
          Key: true
      Default: NULL
        Extra: 
      Visible: true
   DefineExpr: date_format(hours_add(`happen_time`, 1), '%Y-%m-%d %H:00:00')
  WhereClause: (`k1` > '2025-06-12 00:00:00')

insert into ok
```
2025-06-20 14:04:47 +08:00
956fb96dcd branch-2.1: [bugfix](query) Fix for incorrect query results of variant type #51651 (#51707)
### What problem does this PR solve?

Cherry-picked from #51651

### Release note

None

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
2025-06-20 14:03:04 +08:00
7ef4824575 Pick [enhancement](fe-meta) Support skip specified journal to avoid FE can't be start due to a damaged journal (#35783) (#51877)
If fe meta has damaged journals, fe can't be started successfully.
Adding a configuration to skip the damaged journals.

### What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

### Release note

None

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [x] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [x] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [x] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->

Co-authored-by: zxealous <zhouchangyue@baidu.com>
2025-06-20 14:01:43 +08:00
43a5116b9e branch-2.1: [fix](jdbc)make sure init the jdbc client before using it (#51541)
This may cause some statistic collection task fail:
```
2025-06-05 15:02:32,277 WARN (Statistics Job Appender|182) [ExternalCatalog.buildDbForInit():902] Failed to check db DORIS_TEST exist in remote system, ignore it.
java.lang.NullPointerException: Cannot invoke "org.apache.doris.datasource.jdbc.client.JdbcClient.getDatabaseNameList()" because "this.jdbcClient" is null
        at org.apache.doris.datasource.jdbc.JdbcExternalCatalog.listDatabaseNames(JdbcExternalCatalog.java:267) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.datasource.ExternalCatalog.getFilteredDatabaseNames(ExternalCatalog.java:476) ~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.datasource.ExternalCatalog.lambda$makeSureInitialized$0(ExternalCatalog.java:318) ~[doris-fe.jar:1.2-SNAPSHOT]
        at com.github.benmanes.caffeine.cache.LocalLoadingCache.lambda$newMappingFunction$2(LocalLoadingCache.java:145) ~[hive-catalog-shade-2.1.4.jar:2.1.4]
        at com.github.benmanes.caffeine.cache.LocalCache.lambda$statsAware$0(LocalCache.java:139) ~[hive-catalog-shade-2.1.4.jar:2.1.4]
        at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2406) ~[hive-catalog-shade-2.1.4.jar:2.1.4]
        at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1916) ~[?:?]
```

Only for branch-2.1.
Fix master in #51471
2025-06-20 13:58:41 +08:00
6cca489262 branch-2.1: [opt](insert) return root cause of exception when executing insert #51721 (#51759)
Cherry-picked from #51721

Co-authored-by: Mingyu Chen (Rayner) <morningman@163.com>
2025-06-20 13:57:34 +08:00
c7a94ba608 branch-2.1: [chore](load) reduce log for data load #51172 (#51801)
cherry pick from #51172
2025-06-20 13:56:00 +08:00
746d83647e [fix](mtmv) Fix compensate union wrongly when direct query is empty relation (#51700) (#51899)
commitId: 85b7231c
pr: https://github.com/apache/doris/pull/51700
2025-06-20 13:53:06 +08:00
8c2713b2e5 [fix](alter) alter partition without storage_policy property will also cancel storage_policy (#51662) (#51910)
### What problem does this PR solve?

pick #51662 to branch-2.1

### Release note

None

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
2025-06-20 12:18:36 +08:00
a461ff3c8a branch-2.1: [fix](load) fix concurrent read and write to runningTxnIds #51615 (#51640)
Cherry-picked from #51615

Co-authored-by: hui lai <laihui@selectdb.com>
2025-06-17 09:26:33 +08:00
ee09f55ca2 branch-2.1: [fix](mtmv)Fix issue that refreshState turns to init when replaying alterStatus editLog #51439 (#51544)
Cherry-picked from #51439

Co-authored-by: zhangdong <zhangdong@selectdb.com>
2025-06-16 17:30:14 +08:00
03b2606696 [opt](catalog) throw explict error when operation is not supported (#51589) (#51723)
bp #51589
2025-06-16 17:09:14 +08:00
3a1e95c6c2 branch-2.1: [improvement](jdbc catalog) Optimize the acquisition of indentity type in SQLServer (#51659)
pick #51285
2025-06-16 16:50:37 +08:00
eaa6556721 branch-2.1: [fix](nereids) fix cast ipv4 to string #51546 (#51738)
cherry pick from #51546
2025-06-16 15:45:39 +08:00
c6ff4994f3 branch-2.1: [fix](hudi) check requiredFields exists in splitHudiColumnNames in HudiJniScanner #51430 (#51504)
Cherry-picked from #51430

Co-authored-by: Socrates <suyiteng@selectdb.com>
2025-06-16 14:54:40 +08:00
c9623c32f0 branch-2.1: [Bug](sort) fix wrong result coz push down sort with null last #51472 (#51507)
Cherry-picked from #51472

Co-authored-by: Pxl <xl@selectdb.com>
2025-06-16 14:51:12 +08:00
1ee58b216b [fix](test) fix fe UT failed because of timeout (#51699)
fix fe UT failed because of timeout
2025-06-16 09:50:51 +08:00
8734c3fb3b branch-2.1: [improvement](statistics)Agg table set preagg on when doing sample analyzing. (#49918) (#51675)
backport: https://github.com/apache/doris/pull/49918
2025-06-16 09:50:16 +08:00
1a1649376f branch-2.1:[improvement](statistics)Eliminate null values while sample analyzing ndv. (#50574) (#51648)
backport: https://github.com/apache/doris/pull/50574
2025-06-13 15:38:11 +08:00
d4a5039375 branch-2.1: [chore](dep)bump up parquet to 1.15.2 #51372 (#51602)
Cherry-picked from #51372

Co-authored-by: Calvin Kirs <guoqiang@selectdb.com>
2025-06-13 14:04:55 +08:00
831d2c148a branch-2.1:[enhance](mtmv)cache table snapshot in refresh context (#50855) (#51493)
pick: https://github.com/apache/doris/pull/50855
2025-06-05 12:07:10 +08:00
ffb6fd44b5 branch-2.1: [bugfix](fold) Skip constant folding in from_base64 function to fix binary data handling #50453 (#51413)
Cherry-picked from #50453

Co-authored-by: lw112 <131352377+felixwluo@users.noreply.github.com>
2025-06-03 14:05:27 +08:00
8cb499ec7c branch-2.1: [opt](audit) add new variable audit_plugin_max_insert_stmt_length to limit the length of insert stmt #51314 (#51391)
Cherry-picked from #51314

Co-authored-by: Mingyu Chen (Rayner) <morningman@163.com>
2025-06-02 09:32:36 +08:00
c22db94c3a [opt](mtmv) optimize mtmv rewrite performance (#49514) (#51309) 2025-06-02 09:21:10 +08:00
ee74a4062c branch-2.1: [Fix] (nereids) Fix incorrect hive references in LogicalIcebergTableSink and update PlanType #49306 (#51287)
Cherry-picked from #49306

Co-authored-by: nivane <1185807945@qq.com>
Co-authored-by: zhaolipan <zhaolipan@learnable.ai>
2025-06-02 00:12:15 +08:00
06a6d0c5e9 branch-2.1: [fix](agent) cancel agent task when it is rejected by agent-task-pool #51138 (#51212)
Cherry-picked from #51138

Co-authored-by: walter <maochuan@selectdb.com>
2025-05-28 17:24:15 +08:00