Commit Graph

3617 Commits

Author SHA1 Message Date
e63df94c9d [fix](cases) fix unstable leading cases (#46441) (#47896) 2025-02-25 20:38:34 +08:00
65e9dce3da branch-2.1: [fix](Nereids) change numeric arithmatic function boundary behavior to match with be execution behavior #47966 (#48237)
pick:#47966

Related PR: #40744, #47228

Problem Summary:
When numeric function input or output out of boundary when fe folding
constant, it would throw an exception before. Now
we change it to match with be execution result, which is NullLiteral

### 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-02-25 20:38:00 +08:00
24702bfbf1 [BugFix](PreparedStatement) fix stmtId overflow (#47950) (#48271)
cherry-pick from  (#47950)
2025-02-25 20:33:50 +08:00
Pxl
7a98ac434f [Chore](case) pick some broadcast join case from #48247 #47380 (#48310)
### 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-02-25 20:32:12 +08:00
1aa57a3b13 branch-2.1: [fix](array index) Correct null bitmap writing for inverted index #47846 (#48214)
cherry pick from #47846 #48231
2025-02-25 20:31:18 +08:00
af1dcbe17c [cherry-pick](branch-21) fix unstable test case (#48141) (#48274) 2025-02-25 19:06:55 +08:00
cc0339a6ab branch-2.1: [case](mtmv)MTMV upgrade downgrade case #39789 (#48185)
Cherry-picked from #39789

Co-authored-by: zhangdong <493738387@qq.com>
2025-02-22 13:33:08 +08:00
bcd01c5f24 branch-2.1-pick: [Fix](merge-on-write) should calculate delete bitmaps between segmens before skip if tablet is in NOT_READY state in flush phase (#48056) (#48089)
pick https://github.com/apache/doris/pull/48056
2025-02-21 19:53:17 +08:00
3738d0fddc branch-2.1: [fix](nereids) fix push down non-foldable filter through project #47989 (#48084)
cherry pick from #47989
2025-02-21 10:09:03 +08:00
bb6641b63e [cherry-pick](branch-21) add more signatures for lag/lead fucntion (#47940) (#48076) 2025-02-19 20:41:40 +08:00
b2143d05c2 [branch-2.1](regression-test) flush hudi p2 cases (#48042)
### What problem does this PR solve?
Related PR: #47764
There is no hadoop-hudi-jni-scanner in 2.1, remove related cases
2025-02-19 19:00:39 +08:00
bc6af178b3 branch-2.1: [fix](parquet)Fix data column and null map column not equal when reading Parquet complex type cross-page data #47734 (#48039)
Cherry-picked from #47734

Co-authored-by: daidai <changyuwei@selectdb.com>
2025-02-19 15:21:13 +08:00
7f3681b3d7 branch-2.1: [BugFix](Variant) limit cast elimination to one level cast #47778 (#47955)
Cherry-picked from #47778

Co-authored-by: lihangyu <lihangyu@selectdb.com>
2025-02-19 09:30:46 +08:00
c7ad5b6904 branch-2.1: [Bug](set) fix find null get wrong result on set operators #48001 (#48020)
Cherry-picked from #48001

Co-authored-by: Pxl <xl@selectdb.com>
2025-02-19 09:26:49 +08:00
3f7308baa5 [fix](regression) regression case: limit_push_down is unstable (Branch-2.1) (#47895) 2025-02-14 21:51:23 +08:00
fb31586612 branch-2.1: [test](jdbc catalog) add more jdbc catalog extreme test (#47799)
cherry-pick (#47525)
2025-02-14 17:03:49 +08:00
f4e7337896 branch-2.1: [fix](Nereids) let anonymous alias same as user input #47093 (#47770)
pick from master #47093
2025-02-14 16:53:57 +08:00
03529e3743 branch-2.1: [fix](nereids) fix join condition with AddMinMax rule hung #47772 (#47808)
Cherry-picked from #47772

Co-authored-by: 924060929 <lanhuajian@selectdb.com>
2025-02-14 10:20:14 +08:00
3ec900e878 branch-2.1:[opt](jdbc catalog) Compatible with higher ClickHouse JDBC Driver versions (#47832)
cherry-pick from (#46026)
2025-02-13 16:55:25 +08:00
058929528c branch-2.1: [fix](mv) Fix use sync mv wrongly when use rbo materialized view rewrite rule #47650 (#47835)
Cherry-picked from #47650

Co-authored-by: seawinde <wusi@selectdb.com>
2025-02-13 16:10:20 +08:00
8c6c642462 branch-2.1: [fix](nereids)keep at least one hash output slot when prune slots in hash join node #47318 (#47683)
Cherry-picked from #47318

Co-authored-by: starocean999 <lichi@selectdb.com>
2025-02-12 17:53:30 +08:00
b4f03c0eb3 [charry-pick](branch-2.1) add more hudi jni test cases #47431 (#47764) 2025-02-11 22:13:53 +08:00
5fade75891 [test](mtmv)Pick some test pr to 21 #46299 #46787 #46546 (#47098) 2025-02-11 21:56:40 +08:00
e2f9b436a4 [fix](nereids)Add catalog/db/table filter info in SchemaScanNode (#46864) (#47759)
backport: https://github.com/apache/doris/pull/46864
2025-02-11 19:05:27 +08:00
2f7e0f0b76 Revert "[branch-2.1]downgrade resource tag when there is not queryabl… (#47746)
revert #45387
2025-02-11 16:51:07 +08:00
6ceb010195 branch-2.1: [fix](mv)Fix direct select mv pre agg bug. #47658 (#47700)
Cherry-picked from #47658

Co-authored-by: James <lijibing@selectdb.com>
2025-02-10 21:45:00 +08:00
f4e92d75f5 [branch-2.1] fix select * from variables system table (#34529) (#47660)
pick #34529

Signed-off-by: nextdreamblue <zxw520blue1@163.com>
Co-authored-by: xueweizhang <zxw520blue1@163.com>
2025-02-09 14:14:06 +08:00
803d3a1545 Revert "[fix](date_function) fix str_to_date function return wrong microsecond issue" (#47441) 2025-01-26 12:53:11 +08:00
2ae03d7e02 branch-2.1: [Bug](function) fix wrong result when case when have more than 256 conditions and the… #47179 (#47392)
Cherry-picked from #47179

Co-authored-by: Pxl <xl@selectdb.com>
2025-01-25 10:04:50 +08:00
dd7affb8f9 branch-2.1 [Fix](ShortCircuite) fix point query crash with prepared statement when encounter delete sign (#47227)
cherry-pick from #47178
2025-01-25 08:33:06 +08:00
3b7cc67ec2 branch-2.1: [fix](func) Fix precision loss in ST_GeometryFromWKB coordinate parsing #46661 (#47263)
Cherry-picked from #46661

Co-authored-by: lw112 <131352377+felixwluo@users.noreply.github.com>
2025-01-24 17:34:37 +08:00
8925a390d6 [fix](date_function) fix str_to_date function return wrong microsecond issue (#47252) 2025-01-24 17:32:23 +08:00
3aad9e5f67 [opt](oceanbase docker)Use LTS docker image and print unhealthy docker logs (#46647) (#47349)
### What problem does this PR solve?

Problem Summary:
Oceanbase container sometimes start failed.
<img width="653" alt="image"

src="https://github.com/user-attachments/assets/d95c66cf-7e04-4179-a565-9b9dd8b87128"
/>

We do two things:
1. Print last 100 lines docker logs of unhealthy container for debugging
2. Upgrade Oceanbase docker image to the newest `4.2.1-lts`, since it is
7 months newer than `4.2.1`, more stable
2025-01-24 11:22:02 +08:00
4f9562650d Branch-2.1 [Fix](Variant) fix variant serialize to string (#47121) (#47147)
cherry-pick from #47121
2025-01-18 09:12:39 +08:00
9dffe5992e branch-2.1: [fix](json) fix parsing double in jsonb #46977 (#47065)
Cherry-picked from #46977

Co-authored-by: Sun Chenyang <sunchenyang@selectdb.com>
2025-01-18 00:25:13 +08:00
f2fe07a0b9 [fix](regression) join condition is missing in tpcds query24 (#47158) 2025-01-17 20:31:28 +08:00
adc9e9a161 [fix](function) Fix undefined behavior caused by bit_shift_left exceeding the 64-bit range. (#47080)
### What problem does this PR solve?
It is part of this PR's https://github.com/apache/doris/pull/35769
content.


```
SELECT a, b, bit_shift_left(nullable(a), nullable(b)) from t01;
+----------------------+-----+-----------------------------------------------------------+
| a                    | b   | bit_shift_left(nullable(a), cast(nullable(b) as TINYINT)) |
+----------------------+-----+-----------------------------------------------------------+
| -4388843650233597359 | 127 | -9223372036854775808                                      |
| 306567258363819813   | 3   | 2452538066910558504                                       |
| 306567258363819813   | 127 | -9223372036854775808                                      |
| 3456789123456789123  | 127 | -9223372036854775808                                      |
+----------------------+-----+-----------------------------------------------------------+ 
```
now
```
SELECT a, b, bit_shift_left(nullable(a), nullable(b)) from t01;
+----------------------+-----+-----------------------------------------------------------+
| a                    | b   | bit_shift_left(nullable(a), cast(nullable(b) as TINYINT)) |
+----------------------+-----+-----------------------------------------------------------+
| -4388843650233597359 | 127 | 0                                                         |
| 306567258363819813   | 3   | 2452538066910558504                                       |
| 306567258363819813   | 127 | 0                                                         |
| 3456789123456789123  | 127 | 0                                                         |
+----------------------+-----+-----------------------------------------------------------+
```
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
2025-01-16 21:13:24 +08:00
171251cf42 branch-2.1: [test](mtmv) Modify wrong test method and add some log in debug mode test case #46907 (#47091)
Cherry-picked from #46907

Co-authored-by: seawinde <wusi@selectdb.com>
2025-01-16 17:48:14 +08:00
Pxl
05e0bff137 [Bug](scan) do not ignore non-rf predicate which acting same column with rf #46789 (#47015)
pick from #46789
2025-01-15 16:38:35 +08:00
c6ffa1f4eb [Fix](PreparedStatement) fix incorrect query result with prepared statment (#47012)
cherry-pick from #46994
2025-01-15 14:42:04 +08:00
c60627250d branch-2.1: [Fix](schema change) Fix NPE when rename column on table which has sequence type column #46906 (#46942)
pick https://github.com/apache/doris/pull/46906
2025-01-14 19:25:22 +08:00
a8995b883f [regression-test](case) mv tpcds 100 to nonConccurrent (#46936) 2025-01-14 14:25:01 +08:00
a12f4d7a09 [fix](pipelineX) bp #46493 and add some regresstion tests (#46865)
### What problem does this PR solve?

bp #46493
Add some regresstion tests for #46493 and #46541

Co-authored-by: liulijia <liulijia1029@gmail.com>
2025-01-14 10:11:58 +08:00
6c72bfe082 branch-2.1: [fix](test) fix unstable test after some test migration #46834 (#46852)
Cherry-picked from #46834

Co-authored-by: Mingyu Chen (Rayner) <morningman@163.com>
2025-01-13 18:01:03 +08:00
09411c050b branch-2.1: [Fix](partial update) Forbid partial update when table is in SCHEMA_CHANGE/ROLLUP in FE (#46866)
### What problem does this PR solve?

Related PR: https://github.com/apache/doris/pull/22133

Problem Summary:

https://github.com/apache/doris/pull/22133 forbid doing partial update
during schema change on BE, but this may failed to work when some of
replicas finished alter process on BE and some of them don't. This PR
forbids partial update during schema change on FE to avoid this
situation.

### Release note
2025-01-13 16:00:00 +08:00
eb7fdd5714 [regression-test](fix) fix schema_change_modify_mv_column_type2 case bug (#46878) 2025-01-13 14:02:13 +08:00
7f9ea1a231 [fix](parser) Syntax error in column with agg_state (#46829)
### What problem does this PR solve?

the problem only exists in the old optimizer

```
mysql> CREATE TABLE t (
    ->   `k1` int NULL,
    ->   `k2` agg_state<sum(int null)> GENERIC NOT NULL,
    ->   `k3` agg_state<group_concat(text null)> GENERIC NOT NULL
    -> ) ENGINE=OLAP
    -> AGGREGATE KEY(`k1`)
    -> DISTRIBUTED BY HASH(`k1`) BUCKETS 3
    -> PROPERTIES (
    -> "replication_allocation" = "tag.location.default: 1"
    -> );
ERROR 1105 (HY000): errCode = 2, detailMessage = Syntax error in line 3:
  `k2` agg_state<sum(int null)> GENERIC NOT NULL,
                 ^
Encountered: SUM
Expected: SUM is keyword, maybe `SUM`
```
2025-01-13 11:36:49 +08:00
842196ace3 branch-2.1: [regression-test](fix) schema change case bug #46782 (#46811)
Cherry-picked from #46782

Co-authored-by: shuke <shuke@selectdb.com>
2025-01-12 08:58:14 +08:00
94856b19a2 [fix](hive)fix select count(*) hive full acid tb opt error. (#46732) (#46804)
bp #46732
2025-01-12 08:55:10 +08:00
40f3e9bb77 branch-2.1: [regression-test](fix) fix 'desc table' to follower assertion failure #46788 (#46819)
Cherry-picked from #46788

Co-authored-by: shuke <shuke@selectdb.com>
2025-01-11 22:12:20 +08:00