Commit Graph

8816 Commits

Author SHA1 Message Date
159975f237 branch-2.1: [chore](load) optimize show create load error message #53694 (#53731)
Cherry-picked from #53694

Co-authored-by: hui lai <laihui@selectdb.com>
2025-07-26 23:56:37 +08:00
1eadb67c35 branch-2.1: [fix](nereids)'VALUES IN' keyword should be optional in list partition definition #52986 (#53243)
Cherry-picked from #52986

Co-authored-by: starocean999 <lichi@selectdb.com>
2025-07-26 23:38:53 +08:00
a936c5132d branch-2.1: [fix](nereids) fix rule count on index #53825 (#53878)
Cherry-picked from #53825

Co-authored-by: Sun Chenyang <sunchenyang@selectdb.com>
2025-07-26 23:24:27 +08:00
a7f3c21983 branch-2.1: [opt](nereids) opt range inference for or expression when out of order #46303 (#53706)
picked from part of #46303
2025-07-25 16:49:06 +08:00
c1fa17af38 branch-2.1: [feature](group by)Support group by with order. (#53037) (#53840)
backport: https://github.com/apache/doris/pull/53037
2025-07-25 14:37:10 +08:00
77ff75b954 branch-2.1: [opt](nereids) use one fragment to execute point query #53541 (#53574)
Cherry-picked from #53541

Co-authored-by: 924060929 <lanhuajian@selectdb.com>
2025-07-25 14:02:06 +08:00
850360c1c4 branch-2.1: [fix](sql_select_limit) sql_select_limit should not affect DML #53379 (#53764)
cherry picked from #53379
2025-07-25 09:50:55 +08:00
5873aa3083 branch-2.1:[fix](auth)fix when authentication, the permissions of multiple roles should be merged #52349 (#52947)
pick #52349
2025-07-24 17:06:32 +08:00
d316dbb3bd branch-2.1: [fix](catalog) fix deadlock of catalog and database(#53626) (#53629)
bp #53626
2025-07-23 10:00:51 +08:00
fac42370c9 [branch-21](upgrate) fix upgrate error of branch-21 (#53353) 2025-07-21 12:08:48 +08:00
4d59af5aa3 branch-2.1: [fix](job) fix show routine load job result incorrect after alter job property #53038 (#53094)
Cherry-picked from #53038

Co-authored-by: hui lai <laihui@selectdb.com>
2025-07-17 12:16:17 +08:00
eb6a5f884e branch-2.1: [fix](Nereids) not process must shuffle when regulate cannot be banned agg #52827 (#53265)
picked from #52827
2025-07-17 11:34:05 +08:00
cc387f362f branch-2.1: [opt](identifer) let unicode format as a superset of latin format #48078 (#53264)
cherry-picked from #48078
2025-07-16 19:58:58 +08:00
83cdd44d6b branch-2.1: [fix](catalog) synchronize reset methods in catalog classes and remove Lombok annotations (#53168)
pick (#51787)
2025-07-16 12:28:50 +08:00
140fb4c6e6 branch-2.1: [fix](iceberg) Fix transaction issues (#52716) (#53238)
bp #52716

Co-authored-by: wuwenchi <wuwenchi@selectdb.com>
Co-authored-by: wuwenchi.wwc <wuwenchi.wwc@oceanbase.com>
2025-07-16 11:46:36 +08:00
e2fb2566dd [fix](nereids)should distinguish hash and other conjuncts for outer join in MultiJoin (#53184)
pick from master https://github.com/apache/doris/pull/50378 and
https://github.com/apache/doris/pull/53051
### 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-16 09:30:04 +08:00
1e19a3d852 branch-2.1: [chore](information schema) rename routine_load_job system table to routine_load_jobs (#49515) (#53246)
pick (#49515)

### 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-16 09:26:00 +08:00
03994b8d93 branch-2.1: [fix](iceberg)Fix the thread pool issue used for commit. #51508 (#51528)
Cherry-picked from #51508

---------

Co-authored-by: wuwenchi <wuwenchi@selectdb.com>
Co-authored-by: Mingyu Chen (Rayner) <yunyou@selectdb.com>
2025-07-11 06:31:40 +08:00
6e12dc4b06 [opt](auditlog) Use varchar(1024) for column frontend_ip of audit log table #52762 (#52985)
pick #52762
2025-07-10 08:47:30 +08:00
3c38843e0d [Bug](branch-21) fix the compatibility cause coredump during upgrade (#52720)
### What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:
the PR https://github.com/apache/doris/pull/50310 introduce,
shouldn't change the be version in branch-21, others before
compatibility code will be error


### 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-09 11:00:10 +08:00
1775200cba branch-2.1: [fix](coordinator) fix cte with local shuffle throw exception #52870 (#52871)
cherry pick from #52870

---------

Co-authored-by: Gabriel <liwenqiang@selectdb.com>
2025-07-09 10:52:00 +08:00
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