Commit Graph

20113 Commits

Author SHA1 Message Date
4e453dc1bb Revert "[improvement](statistics)Return -1 to neredis if report olap table row count for new table is not done for all tablets. (#40457)" (#40616)
Reverts apache/doris#40540
2024-09-10 17:17:13 +08:00
6f239ebcdd Branch 2.1 clang format error fix (#40609)
## Proposed changes

bp #40581
2024-09-10 16:29:20 +08:00
7d80630757 [opt](scanner profile) More counter for scanner #40144 (#40571)
cherry pick from #40144
2024-09-10 16:08:55 +08:00
e43e6e2bba [improvement](statistics)Return -1 to neredis if report olap table row count for new table is not done for all tablets. (#40457) (#40540)
backport: https://github.com/apache/doris/pull/40457
2024-09-10 12:55:53 +08:00
6961c95eca [chore](error msg) More convenient error msg when function not found. #40296 (#40570)
cherry pick from #40296
2024-09-10 12:03:12 +08:00
db8fb66dba [fix](mtmv)fix nested mtmv not refresh (#40433) (#40560)
pick: https://github.com/apache/doris/pull/40433
2024-09-10 11:51:41 +08:00
05f82df1f1 [fix](restore) update is_being_synced properties #40194 (#40556)
cherry pick from #40194
2024-09-10 11:15:50 +08:00
8eda15ae16 [opt](routine load) support routine load perceived schema change (#39412) (#40508)
pick #39412

At present, if the table structure changes, the routine load cannot
perceive it. As a long-running load, it should be able to perceive the
changes in the table structure.
2024-09-10 11:05:58 +08:00
185353e890 [Fix](inverted index) gc TEMP colum when next_batch in segment iterator (#40563)
## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
2024-09-10 09:56:03 +08:00
978fcf12b6 [Chore](dependnecies)remove javax.el and upgrade jackson to 2.16.0 (#38843) (#39389)
…

## Proposed changes
javax.el is the API for Java Expression Language, which provides a
simple and flexible way for Java Web applications to access and
manipulate data. EL expressions are commonly used in JSP pages, but we
are not involved in their use here, so I removed it.
- upgrade jackson to 2.16.0

(cherry picked from commit 33a0ea5565c2e0d7e5909ca3b512fb0b539f05f4)

#38843

Issue Number: close #xxx

<!--Describe your changes.-->
2024-09-09 21:58:47 +08:00
354967c09f [branch-2.1](memory) pick reserve memory and workload group (#40543)
1. pick #38494
2. pick #39862
3. remove vdata_stream_test, master has been removed
2024-09-09 21:16:06 +08:00
68d1064aa9 [chore](persist) reduce truncate table operation log size #40422 (#40555)
cherry pick from #40422
2024-09-09 20:01:07 +08:00
f69063ea87 [Fix](Variant) use uinque id to access column reader (#39841) (#40269)
#39841
#40295
2024-09-09 18:01:12 +08:00
8f37eccbf2 [Cherry-pick](branch-2.1) Pick "[Featrue](default value) Support bitmap_empty default value (#40364)" (#40487)
## Proposed changes

Pick #40364 

<!--Describe your changes.-->
2024-09-09 16:57:38 +08:00
2235c1abd3 [Feat](OSS)Decouple COS and OBS dependencies with optional inclusion mechanism (#39831)
…

improve the flexibility of the project by decoupling direct dependencies
on the hadoop-cos and hadoop-huaweicloud libraries. These changes allow
users to control whether COS and OBS dependencies are included in the
final build, enabling a more customizable setup.

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
2024-09-09 16:50:12 +08:00
44a7efff4f [branch-2.1] Picks "[Opt](delete) Skip newly inserted rows check in non-strict mode partial update if the row's delete sign is marked #40322" (#40383)
picks https://github.com/apache/doris/pull/40322
2024-09-09 16:32:24 +08:00
9c9827b92e [chore](routine load) make error msg clear if routine load name illegal (#40037) (#40510)
pick (#40037)
2024-09-09 15:47:18 +08:00
314f6ae823 [fix](ES Catalog)Fix int parse error when querying by doc_values (#40385) (#40521)
bp #40385
2024-09-09 14:29:21 +08:00
5f4d1931ff [feature](ES Catalog)Add FE open API for ES Catalog (#40444) (#40526)
bp #40444
2024-09-09 14:25:43 +08:00
4b72a4c04e [improve](routine load) delay schedule EOF tasks to avoid too many small transactions (#39975) (#40509)
pick (#39975)

We encountered a scenario where a large number of small transactions
were generated, resulting in an impact on query performance: Kafka's
data comes in batches of very small data every very short time, which
leads to tasks being frequently scheduled and ending very quickly,
resulting in a large number of small transactions.

To solve this problem, we delay the scheduling of tasks that perceive
EOF, which would not delay data consumption, for perceiving EOF
indicates that the consumption speed is greater than the production
speed.
2024-09-09 11:36:22 +08:00
01a651e573 [enhance](mtmv) During cache generation, no longer hold the write loc… (#40489)
…k for mtmv (#40402)

pick: https://github.com/apache/doris/pull/40402
2024-09-09 11:35:22 +08:00
facce8b4d5 [fix](move-memtable) multi replica tables should tolerate minority failures (#38003) (#40477)
backport #38003
2024-09-09 11:30:46 +08:00
c32d9a129a [test](mtmv) SSB mv rewrite test use little data set for test performance (#40188) (#40437)
## Proposed changes

commitId: 0baa9366
pr: https://github.com/apache/doris/pull/40188
2024-09-09 11:23:47 +08:00
a67f20f073 [opt](mtmv) Support to contain select constant clause when create async materialized view (#40244) (#40435)
## Proposed changes
commitId: 518a0fc0
pr: https://github.com/apache/doris/pull/40244
2024-09-09 11:23:15 +08:00
2c588e2738 [fix](auth)fix case should grant after create view (#40108) (#40488)
pick: https://github.com/apache/doris/pull/40108
2024-09-09 11:21:52 +08:00
4084ff2c4a [enhance](mtmv)Optimize the speed of obtaining the last update time o… (#40421)
…f Hive (#40169)

pick: https://github.com/apache/doris/pull/40169
2024-09-09 11:20:40 +08:00
fc4c2aed64 [enhance](mtmv) Prohibit creating materialized views in external cata… (#40420)
…logs (#39557)

pick: https://github.com/apache/doris/pull/39557
2024-09-09 11:16:40 +08:00
ecb75c2e7d [fix](mtmv) Mtmv support set both immediate and starttime (#39573) (#40418)
pick: https://github.com/apache/doris/pull/39573
2024-09-09 11:13:51 +08:00
a3eba2aad5 [fix](auth) ordinary users can see the processes of other users (#39747) (#40415)
pick: https://github.com/apache/doris/pull/39747
2024-09-09 11:13:18 +08:00
e1e09badfa [chore](mtmv)add plan log for UpdateMvByPartitionCommand (#40072) (#40413)
pick: https://github.com/apache/doris/pull/40072
2024-09-09 11:09:58 +08:00
93a2518d12 [fix](auth)Fix some issues with incorrect permission verification (#3… (#40410)
…9726)

pick: https://github.com/apache/doris/pull/39726
2024-09-09 11:04:49 +08:00
d373ca7da1 [enhancement](schema-change) Support light schema change on hash columns and agg key columns with varchar type to change length (#39319) (#40236)
## Proposed changes

1. Schema change should rebuild distribution info after modifying
columns, especially distribution columns. Or it may cause dynamic
partition failed when checking distribution columns' equality.
2. Support hash key columns to do light schema change. For unique key or
dup key columns, could not be enabled temporarily due to some historical
reasons. See #39798 .
2024-09-09 10:55:32 +08:00
e0b22b5104 [enhancement](schema-change) Log out end version before truncating new tablet data (#39924) (#40239)
## Proposed changes

As title.
2024-09-09 10:46:41 +08:00
a963709fed [opt](scanner) Control the degree of parallelism of scanner when only limit involved #39927 (#40357)
cherry pick from #39927
2024-09-09 10:42:19 +08:00
1c91fbc167 [fix](multi table) do not use strlen to calculate the length of msg (#40367) (#40511)
pick #40367

Meet code dump when using single stream multi table load:
```
SUMMARY: AddressSanitizer: heap-buffer-overflow /root/doris/be/src/io/fs/multi_table_pipe.cpp:99:22 in doris::io::MultiTablePipe::dispatch(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char const*, unsigned long, doris::Status (doris::io::KafkaConsumerPipe::*)(char const*, unsigned long))
```

1. It is hard to guaranteed that msg is a C-style string ending in '\0'
character. If not, it may cause the core dump to access memory out of
bounds.
2. It is not need to calculate the length of msg twice.

Therefore, deleting the logic that using strlen to calculate the length
of msg.
2024-09-09 10:35:59 +08:00
2023eab11e [Fix](ShortCircuit) consider delete sign flag when hits row (#40300) (#40408)
https://github.com/apache/doris/pull/40300
2024-09-09 10:04:05 +08:00
653e315ba5 2.1.6-rc04 (#40491)
## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->

Co-authored-by: yiguolei <yiguolei@gmail.com>
2024-09-06 19:41:37 +08:00
962c382077 [fix](jdbc catalog) Fix type recognition error when using query tvf to query doris (#40481)
pick  (#40122)

Using string to match Doris type will not work with query tvf, so use
field matching instead
2024-09-06 19:30:32 +08:00
Pxl
c1abaa4679 [Bug](map) fix wrong result on map_agg with streaming agg (#40471)
pick from #40454
2024-09-06 19:29:38 +08:00
0e057c49e8 [fix](table-func) fix explode-func with old pipeline (#40482)
## Proposed changes
if we use 2.0 fe and 2.1 be where pipeline use old logic may meet a core
like
```
22:44:04   F20240905 22:31:46.818060 25429 assert_cast.h:45] Bad cast from type:doris::vectorized::ColumnVector<int>* to doris::vectorized::ColumnVector<double>*
22:44:04   *** Check failure stack trace: ***
22:44:04       @     0x560836b66586  google::LogMessage::SendToLog()
22:44:04       @     0x560836b62fd0  google::LogMessage::Flush()
22:44:04       @     0x560836b66dc9  google::LogMessageFatal::~LogMessageFatal()
22:44:04       @     0x5608197f8013  assert_cast<>()
22:44:04       @     0x5608220349af  doris::vectorized::VExplodeJsonArrayTableFunction<>::_insert_values_into_column()
22:44:04       @     0x5608220345d9  doris::vectorized::VExplodeJsonArrayTableFunction<>::get_value()
22:44:04       @     0x560822007812  doris::vectorized::VTableFunctionNode::_get_expanded_block()
22:44:04       @     0x560822009506  doris::vectorized::VTableFunctionNode::pull()
22:44:04       @     0x5608365c4cc4  _ZNSt5_BindIFMN5doris8ExecNodeEFNS0_6StatusEPNS0_12RuntimeStateEPNS0_10vectorized5BlockEPbEPNS5_18VTableFunctionNodeESt12_PlaceholderILi1EESD_ILi2EESD_ILi3EEEE6__callIS2_JOS4_OS7_OS8_EJLm0ELm1ELm2ELm3EEEET_OSt5tupleIJDpT0_EESt12_Index_tupleIJXspT1_EEE
22:44:04       @     0x5608365c47b6  std::_Function_handler<>::_M_invoke()
22:44:04       @     0x560810bcb5b0  doris::ExecNode::get_next_after_projects()
22:44:04       @     0x5608365bf958  doris::pipeline::StatefulOperator<>::get_block()
22:44:04       @     0x5608366bfe9d  doris::pipeline::PipelineTask::execute()
22:44:04       @     0x560836b3de7d  doris::pipeline::TaskScheduler::_do_work()
22:44:04       @     0x56081115a470  doris::ThreadPool::dispatch_thread()
22:44:04       @     0x5608111399f9  doris::Thread::supervise_thread()
22:44:04       @     0x7f43991edac3  (unknown)
```
Issue Number: close #xxx

<!--Describe your changes.-->
2024-09-06 19:29:09 +08:00
b3c0b72faf [cherry-pick](branch-2.1) Pick "[Fix](regression-test) Fix test_group_commit_stream_load_with_nonexist_db_and_table regression test case (#40109)" (#40475)
## Proposed changes

Pick #40109 

<!--Describe your changes.-->
2024-09-06 16:39:58 +08:00
8104b992d1 [fix](ES Catalog)Do not extract doc_values of field with ignore_above setting (#40314) (#40464)
bp #40314
2024-09-06 16:25:30 +08:00
cb0613e249 [fix] (inverted index) fix error result in compound query (#40425)
## Proposed changes

`select count() from table where a + b > 0 or b > 0`


![image](https://github.com/user-attachments/assets/df56bb36-660d-4b4f-8e38-4eebcaa09e51)



- When _execute_predicates_except_leafnode_of_andnode is executed, an
Expr tree is traversed from bottom to top. When it reaches the leaf node
b, the information of this column b is placed into new_predicate_info.

- However, this step is skipped directly at an ADD node, which leads to
the GT node at the upper level generating a sign equivalent to b > 0,
the same as the sign on the right side b > 0.

- This causes the compound OR calculation to assume that both GT
conditions below have been evaluated, thus prematurely computing this
EXPR, when in fact, the ADD node has not been evaluated.

- If the SQL is written as SELECT COUNT(*) FROM table WHERE b + a > 0 OR
b > 0, the calculation would be correct because the sign generated by
this > node would be equivalent to a > 0, which is different from b > 0
on the right side.
2024-09-06 10:27:59 +08:00
f64a728741 [enhance](variant) throw exception when field type is not supported in cast elimation (#40448)
#40388
2024-09-06 09:56:57 +08:00
7e27bb1ae6 [fix](window_funnel) fix wrong result of fixed mode (#40460)
BP #40459
2024-09-06 09:48:24 +08:00
87ac378c4a [branch-2.1](be-ut) wait lazy open in ut (#40453)
## Proposed changes

LRUFileCache test need to wait lazy open done
2024-09-06 09:47:47 +08:00
88750e7e5d [cherry-pick](branch-2.1) Pick "[Fix](group commit) Fix table not found fault when disable group commit (#39731)" (#40323)
<!--Describe your changes.-->

## Proposed changes

Pick #39731 

<!--Describe your changes.-->
2024-09-05 21:39:15 +08:00
4eaf65d887 [fix](tools) adjust download url (#40429) (#40445)
pick from master #40429

Co-authored-by: stephen <hello-stephen@qq.com>
2024-09-05 20:58:59 +08:00
0928c9c6ed [fix](unary function) Fix wrong result of asin, acos and sqrt when processing invalid input #40267 (#40358)
cherry pick from #40267
2024-09-05 19:51:01 +08:00
961d2c9af5 [feat](job)Internal job cancellation immediately and the strong association with the STARTS parameter (#36805) (#38110)
…

## Proposed changes

For internal tasks, such as MTMV, the start time may already be set, or
the time may be adjusted immediately.

<!--Describe your changes.-->

(cherry picked from commit 904a6c0fc1a804520285533de874fe4d0ffff2c1)

## Proposed changes

Issue Number: close #36805

<!--Describe your changes.-->
2024-09-05 16:28:35 +08:00