Commit Graph

21566 Commits

Author SHA1 Message Date
856b64e974 [opt](mtmv) Support single mv rewrite when query is select star (#48742) 2025-03-08 16:25:57 +08:00
Pxl
98c782bedb [Chore](case) pick FragmentMgr::send_filter_size.return_eof/RuntimeFilterProducer::send_size.rpc_fail to 2.1 (#48817)
part of https://github.com/apache/doris/pull/48225
2025-03-08 16:21:22 +08:00
77049c47ea branch-2.1: [Fix](case) Fix test_config_prune_delete_sign when force_olap_table_replication_num=3 #48778 (#48794)
Cherry-picked from #48778

Co-authored-by: bobhan1 <baohan@selectdb.com>
2025-03-08 16:18:54 +08:00
d4e4893ab1 [test](fe) Add session variable enable_reserve_memory for testing (#48813) 2025-03-08 16:18:01 +08:00
0f489dd7b7 [test](kerberos)Add hdfs(tvf),outfile and export test (#48433) (#48776)
#48433
(cherry picked from commit 48fa09096d695c1f760b04ceb834789b1fde63dc)
2025-03-07 14:29:48 +08:00
48e3a73118 [fix](cancel) Fix cancel failure (#48751)
### What problem does this PR solve?

If a query is canceled before fragment contexts are prepared, no
fragment context will be found. So we should set execution ready to
ensure tasks will not be blocked.
2025-03-07 11:10:58 +08:00
3f684f2899 branch-2.1:[fix] (inverted index) Fix UTF-8 4-byte truncation issue and add configuration to control correct term writing (#48657) (#48741)
Cherry-picked from #48657
2025-03-06 21:28:24 +08:00
661eba5c92 branch-2.1: [test](stable) fix some unstable hive and mc cases #48697 (#48770)
Cherry-picked from #48697

Co-authored-by: Mingyu Chen (Rayner) <morningman@163.com>
2025-03-06 20:25:01 +08:00
7b2899a7ff [cherry-pick](jsonb) add a check for jsonb value to avoid invalid jsonb value write into segment file (#48729)
…ke select core (#48625)

fix invalid jsonb value write into segment file which make select core,
so we add a check for jsonb value when convert_to_olap which value will
be written into segment file
2025-03-06 15:50:35 +08:00
4296e111bc [fix](case) fix variant p2 (#48727) 2025-03-06 14:08:10 +08:00
b6719e9f8b [fix](cases) the overflow statement id is not encountered in 2.1 (#48721) 2025-03-06 14:06:54 +08:00
d61737f04b branch-2.1: [fix](function) fix the function elt #48701 (#48719)
Cherry-picked from #48701

Co-authored-by: Sun Chenyang <sunchenyang@selectdb.com>
2025-03-06 11:39:54 +08:00
c9a299e914 [fix](columns) fix bug found by UT and add regression test (#48554) (#48690)
### What problem does this PR solve?

Issue Number: close #xxx

Related PR:  Pick #48554

Problem Summary:

### Release note

None

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [x] 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:
    - [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 -->
2025-03-06 09:33:33 +08:00
8ef433c6dd branch-2.1: (test)[auth]Add call auth module case #42345 (#48640) 2025-03-05 22:12:13 +08:00
dfb00e4078 branch-2.1: Revert "[fix](nereids) Add unique id to non foldable expr… (#48702)
…ession #48103 (#48456)"

This reverts commit 4979d706127044598b1af853d1c2d69ab3f2cebb.

cherry-pick:  #48688

revert: #48103

### 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-03-05 22:07:15 +08:00
18778a2fde branch-2.1: [fix](Nereids) divide const folding for decimalv3 return type is not correct #48641 (#48680)
Cherry-picked from #48641

Co-authored-by: morrySnow <zhangwenxin@selectdb.com>
2025-03-05 22:06:33 +08:00
74c8b549c0 branch-2.1: [fix](restore) Filter partition property storage policy in synced table #47690 (#47793)
Cherry-picked from #47690

Co-authored-by: Uniqueyou <wangyixuan@selectdb.com>
2025-03-05 19:22:19 +08:00
03514b476f Revert "branch-2.1: [fix](inverted index) fix wrong read data for primary key #47841 (#48207)" (#48684)
This reverts commit #48207 for branch2.1 and #47841 for master

### 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-03-05 18:51:54 +08:00
dafd0e8064 branch-2.1: [Fix](case) Fix test_skip_calc_between_segments when force_olap_table_replication_num=3 #48519 (#48646)
Cherry-picked from #48519

Co-authored-by: bobhan1 <baohan@selectdb.com>
2025-03-05 18:49:20 +08:00
0a66daa8e8 branch-2.1: [Fix](case) Fix case test_partial_update_with_delete_col_in_publish #48632 (#48663)
Cherry-picked from #48632

Co-authored-by: bobhan1 <baohan@selectdb.com>
2025-03-05 18:37:13 +08:00
84c638ee68 [opt](Inverted index)Avoid repeated calculations of suffix paths (#48137) (#48155)
bp #48137
2025-03-05 17:56:16 +08:00
fc842fcbf6 branch-2.1: [fix](Nereids) nested window function with order by raise exception #48492 (#48677)
Cherry-picked from #48492

Co-authored-by: morrySnow <zhangwenxin@selectdb.com>
2025-03-05 17:30:09 +08:00
155e908b0e branch-2.1: [enhance](mtmv)mv_infos not hold read lock of tables #47415 (#48675)
Cherry-picked from #47415

Co-authored-by: zhangdong <zhangdong@selectdb.com>
2025-03-05 17:29:41 +08:00
fa9c05a54a [fix](inverted index) Fix for Inaccurate match_phrase_prefix Cache in Query Processing (#48604)
https://github.com/apache/doris/pull/46310
2025-03-05 16:01:28 +08:00
1b33f8cfd6 branch-2.1: [fix](hudi) Set Spark Hudi JNI scanner as default (#48602) (#48606)
### What problem does this PR solve?
Related PR: #45041 

Problem Summary:
If we set hudi_jni_scanner to an incorrect value, jni_connector will be
null, causing a core dump.
So we set Spark Hudi JNI scanner as default and the hadoop hudi jni
reader will be supported in future
2025-03-05 14:02:46 +08:00
d786948b61 branch-2.1: [fix](auth)Privatize the authentication methods in the Auth class to avoid being called incorrectly #48033 (#48531)
Cherry-picked from https://github.com/apache/doris/pull/48033
2025-03-05 12:33:18 +08:00
1b0bb4010b [Enhancement-2.1](log) Reduce INFO log size by changing some routine query log to VLOG (#48293)
### What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

They are only useful when there's a query hanging in BE. When it occurs,
we can dynamically change the vlog level.

### Release note

Reduce query-side INFO log quantity

### 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)
    - [x] 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.
        - [x] 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 -->
2025-03-05 10:18:21 +08:00
be6210d742 branch-2.1: [improve](load) improve error message "unknown load_id" #47509 (#48639)
Cherry-picked from #47509

Co-authored-by: Kaijie Chen <chenkaijie@selectdb.com>
2025-03-05 10:11:24 +08:00
74b85d6bff branch-2.1-pick: [compaction](config) Add a config to control whether to prune rows with delete sign=1 in base compaction (#48241) (#48620)
pick https://github.com/apache/doris/pull/48241
2025-03-05 10:10:58 +08:00
d81e2ebcc8 branch-2.1: [fix](nereids) fix create/alter view column name force cast to lower case #48569 (#48601)
cherry pick from #48569
2025-03-05 10:04:25 +08:00
4ac431b8c8 branch-2.1-pick: [Opt](partial update) Add some cases for partial update #48161 (#48542)
pick https://github.com/apache/doris/pull/48161
2025-03-05 10:04:01 +08:00
fa4b901ec4 branch-2.1: [chore](http) add HttpClient::execute debug log #48595 (#48619)
Cherry-picked from #48595

Co-authored-by: walter <maochuan@selectdb.com>
2025-03-05 10:03:05 +08:00
621944d487 [InvertedIndex](Variant) supoort inverted index for array type in variant (#48594)
cherry-pick from #47688
2025-03-05 10:02:13 +08:00
0dd5eaf576 branch-2.1: [fix](heartbeat) avoid failure immediately due to connection reset #48444 (#48635)
Cherry-picked from #48444

Co-authored-by: Yongqiang YANG <yangyongqiang@selectdb.com>
2025-03-05 09:52:46 +08:00
ad10da3d7c branch-2.1: [test](mv) Fix regression test case to make stable #47880 (#48262) 2025-03-05 09:30:18 +08:00
08e7d920db branch-2.1: [fix](index build) Correct inverted index behavior after dynamically adding a column #48389 (#48546)
Cherry-picked from #48389

---------

Co-authored-by: airborne12 <jiangkai@selectdb.com>
2025-03-05 09:26:54 +08:00
Pxl
548c79f336 [Improvement](column) add santy check and add some fix for ColumnString #47964 (#48512)
pick part of #47964
2025-03-04 21:47:16 +08:00
123000ed9d [fix](array_avg) fix core for array_avg (#46927) (#48631)
if we set session variable for fold_constant_for_be = 1 and
enable_decimal256 = true
here will meet error in sql
```
SELECT ARRAY_AVG(CAST([] AS ARRAY < DECIMALV3(1,0) > ));
```
with core
```
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /mnt/disk1/wangqiannan/amory/doris/be/src/vec/columns/column_decimal.h:200:15 in
 0# doris::signal::(anonymous namespace)::FailureSignalHandler(int, siginfo_t*, void*) at /mnt/disk1/wangqiannan/amory/doris/be/src/common/signal_handler.h:421
 1# PosixSignals::chained_handler(int, siginfo*, void*) [clone .part.0] in /mnt/disk1/wangqiannan/tool/jdk-17.0.10/lib/server/libjvm.so
 2# JVM_handle_linux_signal in /mnt/disk1/wangqiannan/tool/jdk-17.0.10/lib/server/libjvm.so
 3# 0x00007FD98C1A2B50 in /lib64/libc.so.6
 4# doris::vectorized::ColumnDecimal<doris::vectorized::Decimal<wide::integer<256ul, int> > >::get_data_at(unsigned long) const at /mnt/disk1/wangqiannan/amory/doris/be/src/vec/columns/column_decimal.h:201
 5# doris::vectorized::DataTypeDecimalSerDe<doris::vectorized::Decimal<wide::integer<256ul, int> > >::write_column_to_pb(doris::vectorized::IColumn const&, doris::PValues&, long, long) const at /mnt/disk1/wangqiannan/amory/doris/be/src/vec/data_types/serde/data_type_decimal_serde.h:158
 6# doris::vectorized::DataTypeNullableSerDe::write_column_to_pb(doris::vectorized::IColumn const&, doris::PValues&, long, long) const at /mnt/disk1/wangqiannan/amory/doris/be/src/vec/data_types/serde/data_type_nullable_serde.cpp:237
 7# doris::FoldConstantExecutor::fold_constant_vexpr(doris::TFoldConstantParams const&, doris::PConstantExprResult*) at /mnt/disk1/wangqiannan/amory/doris/be/src/runtime/fold_constant_executor.cpp:118
 8# doris::PInternalService::_fold_constant_expr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, doris::PConstantExprResult*) at /mnt/disk1/wangqiannan/amory/doris/be/src/service/internal_service.cpp:1537
 9# doris::PInternalService::fold_constant_expr(google::protobuf::RpcController*, doris::PConstantExprRequest const*, doris::PConstantExprResult*, google::protobuf::Closure*)::$_0::operator()() const at /mnt/disk1/wangqiannan/amory/doris/be/src/service/internal_service.cpp:1515
10# void std::__invoke_impl<void, doris::PInternalService::fold_constant_expr(google::protobuf::RpcController*, doris::PConstantExprRequest const*, doris::PConstantExprResult*, google::protobuf::Closure*)::$_0&>(std::__invoke_other, doris::PInternalService::fold_constant_expr(google::protobuf::RpcController*, doris::PConstantExprRequest const*, doris::PConstantExprResult*, google::protobuf::Closure*)::$_0&) at /mnt/disk1/wangqiannan/tool/ldb_toolchain_16/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/invoke.h:61
11# std::enable_if<is_invocable_r_v<void, doris::PInternalService::fold_constant_expr(google::protobuf::RpcController*, doris::PConstantExprRequest const*, doris::PConstantExprResult*, google::protobuf::Closure*)::$_0&>, void>::type std::__invoke_r<void, doris::PInternalService::fold_constant_expr(google::protobuf::RpcController*, doris::PConstantExprRequest const*, doris::PConstantExprResult*, google::protobuf::Closure*)::$_0&>(doris::PInternalService::fold_constant_expr(google::protobuf::RpcController*, doris::PConstantExprRequest const*, doris::PConstantExprResult*, google::protobuf::Closure*)::$_0&) at /mnt/disk1/wangqiannan/tool/ldb_toolchain_16/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/invoke.h:117
12# std::_Function_handler<void (), doris::PInternalService::fold_constant_expr(google::protobuf::RpcController*, doris::PConstantExprRequest const*, doris::PConstantExprResult*, google::protobuf::Closure*)::$_0>::_M_invoke(std::_Any_data const&) at /mnt/disk1/wangqiannan/tool/ldb_toolchain_16/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_function.h:291
13# std::function<void ()>::operator()() const at /mnt/disk1/wangqiannan/tool/ldb_toolchain_16/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_function.h:560
14# doris::WorkThreadPool<false>::work_thread(int) at /mnt/disk1/wangqiannan/amory/doris/be/src/util/work_thread_pool.hpp:158
15# void std::__invoke_impl<void, void (doris::WorkThreadPool<false>::* const&)(int), doris::WorkThreadPool<false>*&, int&>(std::__invoke_memfun_deref, void (doris::WorkThreadPool<false>::* const&)(int), doris::WorkThreadPool<false>*&, int&) at /mnt/disk1/wangqiannan/tool/ldb_toolchain_16/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/invoke.h:74
16# std::__invoke_result<void (doris::WorkThreadPool<false>::* const&)(int), doris::WorkThreadPool<false>*&, int&>::type std::__invoke<void (doris::WorkThreadPool<false>::* const&)(int), doris::WorkThreadPool<false>*&, int&>(void (doris::WorkThreadPool<false>::* const&)(int), doris::WorkThreadPool<false>*&, int&) at /mnt/disk1/wangqiannan/tool/ldb_toolchain_16/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/invoke.h:96
```

### 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-03-04 21:46:26 +08:00
1ccd879e3d branch-2.1: [fix](serde)fix arrow serde with no value into column #48053 (#48097)
Cherry-picked from #48053

Co-authored-by: amory <wangqiannan@selectdb.com>
2025-03-04 21:37:52 +08:00
ad1695891a branch-2.1: [fix](jdbc catalog) Use factory methods to return mapped types instead 2 #48541 (#48586)
Cherry-picked from #48541

Co-authored-by: zy-kkk <zhongyk10@gmail.com>
2025-03-04 21:36:06 +08:00
1faa684d20 [debug](do not merge) add routine load debug info (#48592) 2025-03-04 16:31:38 +08:00
c9381b0285 [fix](load) Fix import failure when the stream load parameter specifies Transfer-Encoding:chunked (#48196) (#48503)
pick from master  #48196
2025-03-04 10:12:54 +08:00
ddf63dc2f0 branch-2.1: [enhancement](threadpool) reduce thread pool for arrow flight and spill io threads #48530 (#48556)
Cherry-picked from #48530

Co-authored-by: yiguolei <guolei@selectdb.com>
2025-03-03 18:51:48 +08:00
107f4d48bd branch-2.1: [fix])(catalog)add equals for external table #47956 (#48533)
Cherry-picked from https://github.com/apache/doris/pull/47956
2025-03-03 18:28:43 +08:00
9cf3b4671d branch-2.1: [fix](broker) fix fd always timeout #48494 (#48522)
Cherry-picked from #48494

Co-authored-by: Lijia Liu <liutang123@yeah.net>
Co-authored-by: liutang123 <liulijia@gmail.com>
Co-authored-by: Dongyang Li <lidongyang@selectdb.com>
2025-03-03 18:15:10 +08:00
1668d9ddc6 [fix](ci) adjust thirdparth download url (#48552) 2025-03-03 15:58:55 +08:00
909dfbea4c branch-2.1: [fix](p2) fix the failed of cold_heat_separation_p2 #48199 (#48517)
Cherry-picked from #48199

Co-authored-by: yagagagaga <zhangminkefromflydish@gmail.com>
2025-03-03 14:51:30 +08:00
4134db5ee3 branch-2.1: [enhancement](nereids)remove dependence on old CreateTableStmt for CreateTableLikeCommand #48007 (#48528)
pick from master https://github.com/apache/doris/pull/48007

### 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-03-03 14:50:59 +08:00
8b563d6ec1 branch-2.1: [test](mtmv)add create partition and partition scrolling #42402 (#44797)
pick from master #42402
2025-03-03 11:32:26 +08:00
479d9f6428 branch-2.1: [fix](p2_test) fix Export p2 test #48380 (#48407)
Cherry-picked from #48380

Co-authored-by: Tiewei Fang <fangtiewei@selectdb.com>
2025-03-02 22:41:23 +08:00