Commit Graph

9245 Commits

Author SHA1 Message Date
21b8887b54 [feat](profile) Print changed session var in profile #41016 (#41317)
cherry pick from #41016
2024-09-27 09:55:43 +08:00
c487fc0e5f [enhance](mtmv)Optimize the logic of mtmv lock (#41010) (#41254)
pick: https://github.com/apache/doris/pull/41010
2024-09-26 23:02:02 +08:00
eb13cd4154 [branch-2.1] Picks "[Fix](partial update) Fix __DORIS_SEQUENCE_COL__ is not set for newly inserted rows in partial update #40272" (#40964)
picks https://github.com/apache/doris/pull/40272
2024-09-26 22:54:27 +08:00
e6ce4a2c26 [fix](meta) fix Unknown column 'mva_SUM__CAST` (#41285)
## Proposed changes

cherry pick from #41283
2024-09-26 22:52:51 +08:00
3eda77b3d9 [branch-2.1][improvement](jdbc catalog) Optimize JdbcCatalog case mapping stability (#41330)
pick #40891
This PR makes the following changes to the uppercase and lowercase
mapping of JdbcCatalog
1. The identifierMapping is managed by JdbcExternalCatalog instead of
JdbcClient to better control its lifecycle
2. The identifierMapping no longer loads remoteName alone, but Catalog
controls the loading uniformly
3. The identifierMapping will be loaded when each FE performs
makeSureInitialized() to ensure that each FE has a mapping
4. The initialization of mapping will only be performed once in
makeSureInitialized(), which means that even if you use metaCache, if
your source data is updated when identifierMapping is enabled, you must
refresh the catalog to query normally.
5. The identifierMapping is only responsible for the properties of the
Catalog and is no longer affected by the fe config, simplifying the
processing logic
6. If lower_case_mete_names is false and meta_names_mapping is empty in
the catalog properties, the identifierMapping will no longer take
effect, further enhancing the stability of the default settings
7. The JdbcClient is no longer closed during onRefreshCache, reducing
the repeated creation of resources, improving reuse, and reducing the
leakage of some global shared threads
2024-09-26 22:49:55 +08:00
5e6cd8749e [branch-2.1](hudi) fix fe memory leak(#41256) (#41225)
bp #41256
2024-09-26 22:34:16 +08:00
d89e5de815 [improvement](tablet scheduler) fix higher priority tablet add failed due to pending queue full #41076 (#41268)
cherry pick from #41076
2024-09-26 22:31:20 +08:00
f422b82e24 [Fix](Nereids) fix append_trailing_char_if_absent function return null (#41157)
cherry-pick: https://github.com/apache/doris/pull/40820
example: select append_trailing_char_if_absent('it','a') would return
null in original design, it can not return null when folding constant on
fe any time
2024-09-26 16:18:12 +08:00
43c1066bc7 [fix](analysis) Fix ColumnDef to sql result #41205 (#41325)
cherry pick from #41205
2024-09-26 14:11:13 +08:00
4deda2fce7 [improvement](nereids) Simplify ScanNode projection handling by removing redundant conditions (#40801) (#41315)
pick from master #40801

This PR simplifies the handling of `ScanNode` projection logic.
Previously, the code included multiple conditional checks to determine
whether a `projectionTuple` should be generated. These conditions have
been removed, and now `projectionTuple `is always generated for
`ScanNode`, ensuring a consistent projection setup. Additionally,
redundant handling of `SlotId` and `SlotRef` has been eliminated, making
the code cleaner and easier to maintain. The behavior for `OlapScanNode`
remains unchanged.
2024-09-26 10:35:01 +08:00
1459517568 [improvement](binlog) filter dropped indexes #41246 (#41300)
cherry pick from #41246
2024-09-26 08:38:28 +08:00
306af52aa2 [Fix](jdbc-scanner) Fix jdbc scanner memory leak because it didn't close outputTable. (#41266)
## Proposed changes

Backport #41041.
2024-09-25 17:35:13 +08:00
63555ea970 [fix](mysql)Support COM_CHANGE_USER and other mysql command. (#40932) (#41251)
backport: https://github.com/apache/doris/pull/40932
2024-09-25 15:37:02 +08:00
ba491af9f1 [branch-2.1] do not fallbacl to origin planner for call stmt (#41263)
`CALL xxx` statement is not supported by old planner.
And if fallback, the error message will be confused.
2024-09-25 14:30:56 +08:00
5bf210ffa4 [revert](storage) storage medium of partition should not inherit from… (#41212)
… table (#41192)
pick: https://github.com/apache/doris/pull/41192
2024-09-25 14:15:24 +08:00
11bad4cbc9 [opt](routine load) optimize routine load timeout logic (#40818) (#41135)
pick #40818

If IO/CPU resources are tight, routine load task is likely to timeout.
The current method is self-adaption backoff
https://github.com/apache/doris/pull/32227, but the problem is it will
do some ineffective work to match proper timeout. For one routine load
task, a better way to handle task is finishing executing instead of
retry when resources are tight. Therefore, this pr increase timeout to
make "task always finish even if it is slow when resources are tight".
2024-09-25 14:14:02 +08:00
386c55f00a [fix](transaction) commit txn check txn status (#40064) (#41227)
pick https://github.com/apache/doris/pull/40064/
2024-09-25 10:56:10 +08:00
5b3b2cec80 [feat](metatable) support table$partitions for hive table (#40774) (#41230)
bp #40774
and pick part of #34552, add `isPartitionedTable()` interface in `TableIf`
2024-09-25 09:52:07 +08:00
fc0b4b9ced [fix](explain) fix NPE when explain verbose with partition batch mode (#40969) (#41231)
bp #40969
2024-09-24 21:10:13 +08:00
5c5251405a [improvement](statistics)Remove analyze retry logic. (#41220)
Remove analyze retry logic when task failed. Because usually retry would
fail again and retry would bring a long time of sleep, which cause the
analyze job running too slow.
Master pr: https://github.com/apache/doris/pull/33703
2024-09-24 20:26:01 +08:00
a1429efc41 [fix](routine load) write edit log when rescheduled job (#40728) (#41134)
pick (#40728)
```
2024-09-11 20:00:53,079 ERROR (replayer|105) [RoutineLoadManager.replayChangeRoutineLoadJob():836] should not happened
org.apache.doris.common.DdlException: errCode = 2, detailMessage = Could not transform PAUSED to PAUSED
	at org.apache.doris.load.routineload.RoutineLoadJob.checkStateTransform(RoutineLoadJob.java:855) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.load.routineload.RoutineLoadJob.unprotectUpdateState(RoutineLoadJob.java:1407) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.load.routineload.RoutineLoadJob.updateState(RoutineLoadJob.java:1394) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.load.routineload.RoutineLoadManager.replayChangeRoutineLoadJob(RoutineLoadManager.java:834) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.persist.EditLog.loadJournal(EditLog.java:717) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.catalog.Env.replayJournal(Env.java:2913) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.catalog.Env$4.runOneCycle(Env.java:2675) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.common.util.Daemon.run(Daemon.java:116) ~[doris-fe.jar:1.2-SNAPSHOT]
```

`unprotectNeedReschedule()` will change job state to
`JobState.NEED_SCHEDULE` without `logOpRoutineLoadJob`.If job is paused
then rescheduled and paused finally, the record of two consecutive edit
logs will be 'PAUSED', the correct
replay sequence should be: `PAUSED` -> `NEED_SCHEDULE` ->` PAUSED`. 

Therefore, it is need to write edit log when rescheduled job.
2024-09-24 16:03:55 +08:00
c81182aed8 [fix](restore) Fix clean restore with view #40620 (#41186)
cherry pick from #40620
2024-09-24 14:10:27 +08:00
2b427c316a [feature](functions) impl scalar functions normal_cdf,to_iso8601,from_iso8601_date (#40695) (#41049)
bp #40695
2024-09-24 09:52:39 +08:00
0d38a9a36d [feature](restore) support atomic restore (#41107)
Cherry-pick #40353, #40734, #40817, #40876, #40921, #41017, #41083
2024-09-24 09:41:41 +08:00
48e60f3ff3 [Fix](inverted index) fix wrong opt for count_on_index #41127 (#41154)
cherry pick from #41127
2024-09-23 22:45:52 +08:00
5bcea1983d [opt](nereids) enable runtime filter use cte as target #40815 (2.1) (#41090)
## Proposed changes
pick #40815
Issue Number: close #xxx

<!--Describe your changes.-->
2024-09-23 22:34:03 +08:00
a6ef7e00e4 [fix](restore) Fix view signature #41120 (#41150)
cherry pick from #41120
2024-09-23 22:04:20 +08:00
d529f00dc0 [branch-2.1][Fix](hdfs-fs)The cache expiration should explicitly release the held fs (#38610) (#41108)
bp #38610
2024-09-23 18:55:08 +08:00
fdd7ffc0bd [branch-2.1][Fix](http)Ignore exceptions when getting system information errors #39671 (#41106)
bp #39671
2024-09-23 18:35:35 +08:00
e1057ac26d [branch-2.1][fix](metadata)Add FE metadata-related file checks #40546 (#41113)
## Proposed changes

#40546
2024-09-23 17:13:35 +08:00
76d62c42db [pick](Variant) check enable light_schema_change when create table with variant type (#41102)
#40908
2024-09-23 14:30:16 +08:00
f6917acd6a [cherry-pick](branch2.1) Impl translate and url encode 2.1 (#41051)
## Proposed changes

pick https://github.com/apache/doris/pull/40567

some code about const folding should wait the pr picked:
https://github.com/apache/doris/pull/40441
2024-09-23 14:26:27 +08:00
059f822a3a [fix](restore) Remove the sqlMode from the view signature #40615 (#41110)
cherry pick from #40615
2024-09-23 14:07:52 +08:00
d44ee1cddb [branch-2.1](session-variable) Add a debug variable of constant fold (#35584) (#41032)
pick https://github.com/apache/doris/pull/35584
2024-09-23 10:01:05 +08:00
7d64c8cbc6 [branch-2.1] Picks "[opt](autoinc) Remove some restrictions on schema change on table that has auto-increment column #40280" (#41096)
picks https://github.com/apache/doris/pull/40280
2024-09-23 09:30:15 +08:00
9dc55f90eb [opt](nereids) set lower bound for range-selectivity(2.1) (#41061)
## Proposed changes
pick #40089
Issue Number: close #xxx

<!--Describe your changes.-->
2024-09-22 07:32:22 +08:00
9877a08834 [feature](function) support ngram_search function #38226 (#40893)
https://github.com/apache/doris/pull/38226 
mysql [test]>select ngram_search('123456789' , '12345' , 3);
+---------------------------------------+
| ngram_search('123456789', '12345', 3) |
+---------------------------------------+
|                                   0.6 |
+---------------------------------------+
1 row in set (0.01 sec)

mysql [test]>select ngram_search("abababab","babababa",2);
+-----------------------------------------+
| ngram_search('abababab', 'babababa', 2) |
+-----------------------------------------+
|                                       1 |
+-----------------------------------------+
1 row in set (0.01 sec)
```

doc https://github.com/apache/doris-website/pull/899

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
2024-09-21 20:34:44 +08:00
d5115a21b5 [pick](ShortCircuit) Conjuncts outof key columns's order should be handled (#41071)
#37900
2024-09-21 20:34:05 +08:00
e568ba3b4c [bugfix](hive)Handle exceptions when submitting tasks fails to prevent dead loop for 2.1 (#40708) (#41052)
bp: #40708
2024-09-21 08:47:31 +08:00
63a1e0dccb [fix](profile) Fix npe when updating profile for internal load task. #40990 (#41077)
cherry pick from #40990
2024-09-20 23:46:43 +08:00
ff22059d5d [cherry-pick](branch-2.1)[fix](sys_table) fix potential NPE when query table_properties and partitions sys table (#41081)
## Proposed changes

Issue Number: close #xxx

bp #40972
2024-09-20 23:43:33 +08:00
f4b06e83eb [bugfix](hive)Fix cache inconsistency issue for 2.1 (#40729) (#41050)
## Proposed changes
bp: #40729
2024-09-20 20:28:55 +08:00
f60a881425 [fix](nereids)adjust conjunct's nullable info in LogicalExternalRelation (#41031)
## Proposed changes

pick from master https://github.com/apache/doris/pull/41014
<!--Describe your changes.-->
2024-09-20 20:20:12 +08:00
2bb83302e4 [bugfix](hive)Remove redundant split operations for 2.1 (#40683) (#41055)
## Proposed changes
bp: #40683
2024-09-20 20:09:11 +08:00
dbd72deaa5 [opt](nereids)show user friendly error msg when window function contains order by expression (#40937) (#41036)
pick from master #40937
2024-09-20 18:50:55 +08:00
1259fe2bd5 [fix](covar) Fix covar nullable on branch-2.1 (#40841)
covar should not be always nullable.

This fix on branch-2.1 makes covar same with master on FE.
2024-09-20 17:35:27 +08:00
8e860a26a7 [fix](systable) fix unstable case for partitions table (#40553) (#41043)
bp #40553
2024-09-20 17:13:30 +08:00
3484e7b2ff [fix](table_options) fix potential NPE when quering table_options systable (#40944) (#41040)
bp #40944
2024-09-20 16:57:02 +08:00
d7f60c5ef1 [Cherry-pick](branch 2.1)[Enhancement] support last_query_id function (#41025)
## Proposed changes

Issue Number: close #xxx

backport #40739
2024-09-20 14:07:39 +08:00
64880a10d6 [branch-2.1] Picks "[Fix](partial update) Fix partial update failed when merge_type=MERGE #40730" (#40951)
picks https://github.com/apache/doris/pull/40730
2024-09-20 00:02:17 +08:00