Commit Graph

18429 Commits

Author SHA1 Message Date
0dcbc5ee18 [fix](backup) missing use_path_style properties for minio (#25803)
Follow #25496.
In #25496, I fixed the issue that the aws s3 properties are invalid when passing from FE to BE.
But it missed the `use_path_style` property, which is useful for minio access.
This PR fix it.
2023-10-26 01:19:28 +08:00
0fb57a6db8 [fix](meta) add sync new image timeout (#25768)
Add timeout config for sync
2023-10-25 23:46:18 +08:00
5c191e5b08 [fix](case) fix out file for test_struct_functions (#25910) 2023-10-25 23:29:18 +08:00
7f66be84d5 [fix](Outfile) Infer the column name if the column is expression in select into outfile (#25854)
This pr do two things:
1. Infer the column name if the column is expression in `select into outfile`. The rule for column name generation can be refered in pr: #24990 
2. fix bug that it will core dump if the `_schema` fails to build in the open phase in vorc_transformer.cpp


TODO:
1. Support infer the column name if the column is expression in `select into outfile` in new optimizer(Nereids).
2023-10-25 22:49:04 +08:00
e783ef716f [fix](multi-table) fix unknown source slot descriptor when load multi table (#25762) 2023-10-25 21:52:01 +08:00
04a70ecaf0 [fix](info_db) do not fetch external catalog's info in information_schema (#25844)
There is FE config `infodb_support_ext_catalog`, the default is false.
Which means that the tables in `information_schema` database will not return info of external catalog.
Because if there are too many external catalogs in Doris with lots of db/tbl (like running p0 regression tests),
querying infomation_schema db will take a long time and may causing rpc timeout.

And there is an unresolved issue that if thrift rpc timeout, the BE may be crashed in ASAN mode.
So to avoid this issue(not fix yet), this PR mainly changes:

if `infodb_support_ext_catalog` is false,
1. query info of external catalog in information_schema db is not allowed, such as

	show database like "external_catalog";
	show tables like "xxx"

2. select * from information_schema.tbl will not contains external catalogs' info

3. For external p0 regression test pipeline, set `infodb_support_ext_catalog` to true to run the tests related to external catalog
2023-10-25 21:34:36 +08:00
018abdb679 [fix](fe-ut) fix npe of fe ut (#25904) 2023-10-25 19:56:00 +08:00
d70af6b6be [Fix](regression)es catalog adds prefixes or suffixes to avoid mutual influence (#25826)
es catalog adds prefixes or suffixes to avoid mutual influence
2023-10-25 19:52:49 +08:00
3e21e4bdc2 [feature](CANCEL-ALTER-SYSTEM)decommission backend by ids (#25441)
Issue Number: close #23636
2023-10-25 19:49:38 +08:00
f31c1d858a [fix](merge-on-write) fix duplicate key in schema change (#25705)
It should be ensured that the obtained versions are continuous when calculate delete bitmap calculations in publish.
The remaining NOTREADY tablet in the schema change failure should be dropped.
When a rowset was deleted, the delete bitmap cannot be deleted until there are no read requests to use the rowset.
2023-10-25 05:59:48 -05:00
8a8ae44eee [Fix](regression)Fix statistics related regression test (#25888) 2023-10-25 05:59:13 -05:00
01d5901356 [fix](Nereids) cte should support nested name reuse (#25858)
for example:
```sql
with a as (with a as (select * from t) select * from a) select * from a;

with a as (select * from t1), b as (with a as (select * from a) select * from a) select * from b;
```
2023-10-25 18:52:14 +08:00
e8f479882d [pipelineX](local exchange) Add local exchange operator (#25846) 2023-10-25 18:45:02 +08:00
a919ef618d [fix](planner) Fix select table tablet not effective (#25378)
Fix select table tablet not effective, table distributed by random.
If tabletID specified in query does not exist in this partition, skip scan partition.
2023-10-25 18:02:27 +08:00
4bda1650e1 [docs & fix](stats) Fix tablesample init failed and some outdated contents in docs (#25603) 2023-10-25 04:38:00 -05:00
20fa1eff65 [enhancement](Nereids) Filter no data partition after partition prune (#25456) 2023-10-25 04:37:10 -05:00
8a436d8ecc [FIX](collectiontype) fix shrink char column in map/struct (#25725)
fix shrink char column in map/struct
before we has char with specific length defined in map or struct field
we select map or struct , the char column in which one has been padding if we just insert less than specific length chars
but in mysql here just show inserted chars not padding specific length chars
---------

Co-authored-by: yiguolei <676222867@qq.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-25 17:16:13 +08:00
0eea19403e [fix](stats) analyze specific column only if indicate column in analyze stmt (#25660) 2023-10-25 04:08:10 -05:00
8a03a07339 [feature](Nereids): pull up Project under Limit/TopN (#25866)
If project contains expression-eval, we need pull up through limit, it can improve performance.
2023-10-25 16:44:32 +08:00
693982fd1a [feature](decimal) support decimal256 (#25386) 2023-10-25 15:47:51 +08:00
97c2fe75d1 [feature](pipelineX) use expected<T, Status> in local_state (#25878) 2023-10-25 15:23:17 +08:00
4f17c2a8b1 [feature](alter backends)backend modify & drop & decommission by ids (#25444) 2023-10-25 14:32:30 +08:00
49b73483fd [fix](field) fix coredump of field function when the first argument is const (#25859) 2023-10-25 14:14:32 +08:00
ae66464d6b [refactor](Nereids) refactor infer predicate rule to avoid lost cast (#25637)
extract slot and literal in comparison predicate. infer new one by equals predicates.
use TypeCoercion to add cast on new comparison predicate to ensure it is correct.

This reverts "[Fix](Nereids) Add cast comparison with slot reference when inferring predicate (#21171)"
commit 58f2593ba1b65713e7b3c1ed39fc84be8cc3ff2c.
2023-10-25 01:12:22 -05:00
3b9ae91910 [Fix](Nereids) fix test leading suite and add tpch shape checking base on leading (#25842)
- fix test leading suite caused by sessionvariable setting error
- add tpch shape checking base on leading
2023-10-25 01:10:14 -05:00
235ae9ded4 [improvement](fragment) optimize to get query context logic (#25621) 2023-10-25 14:03:47 +08:00
a979d5a1f0 [improve](regression test) Add case for if function (#25780) 2023-10-25 14:03:28 +08:00
ba75f3457c [opt](Nereids) update first_value and last_value signature (#25790) 2023-10-25 00:49:27 -05:00
4ac82fd367 [opt](Nereids) add group_array as collect_list alias (#25836) 2023-10-25 00:46:40 -05:00
e3317ac1b9 [fix](compile) fix BE compile failure on Mac (#25876) 2023-10-25 12:55:00 +08:00
7ca3f7100f [testcases](datetime) temporarily remove str_to_date related case (#25877) 2023-10-25 12:54:38 +08:00
f5db5703c9 [regression-test](remove case) remove test_bitmap_filter_p1.groovy (#25812) 2023-10-25 11:39:25 +08:00
0068783e88 [fix](merge-on-write) change some static_cast<void> to RETURN_IF_ERROR (#25863) 2023-10-25 11:23:06 +08:00
d94ae20d4a [improvement](nereids) support insert into doris_internal_table_id(xxx) (#25722) 2023-10-25 11:12:00 +08:00
411fae951b [fix](trash core) fix get trash directory core when stop be (#25428) (#25829) 2023-10-25 11:05:25 +08:00
5e3277e8fb [improvement](routine-load) add routine load rows check (#25818) 2023-10-25 11:04:28 +08:00
552091f21f [performance](pipelineX) optimize pipelineX (#25713) 2023-10-25 10:13:17 +08:00
6b2eed779c [feature](AuditLog) add scanRows scanBytes in auditlog (#25435) 2023-10-25 10:00:35 +08:00
440345169a [Fix](Nereids) fix column statistic derive in outer join estimation (#25586)
Problem:
When join estimation, upper join output slot statistic ndv would go wrong
Example:
we have two table:
tableA (a1[ndv = 10.0]) tableB(b1[ndv = 0.0], b2[ndv = 10.0])
tableA left join tableB on A.a1 = B.b1. which B.b1 with ndv zero.
the problem is after join estimation, B.b2 changed to 1.0.
Reason:
When estimating outer join, we can assume it behave like inner join. But we estimation then like inner join do
Solved:
When estimation outer join, output slot would update seperatly.
2023-10-24 22:25:20 +08:00
88dd480c2e [enhancement](CSV-reader) enhance err log for csv reading containing enclose or escape (#25816) 2023-10-24 22:10:08 +08:00
69c3e08699 [improve](load) set load id in signal handler (#25813) 2023-10-24 21:58:39 +08:00
bab7581054 [fix](delete) fix potential delete fail after adding columns (#25817) 2023-10-24 21:45:21 +08:00
b82136bdb9 [fix](report handler) fix report handler lock leak (#25853) 2023-10-24 21:43:55 +08:00
40e430ca55 [regression](multi-catalog) add aliyun dlf hive on oss and huawei obs test case (#25650)
add aliyun dlf hive on oss and huawei obs test case
now obs cases have some problem, will not fix this at this PR, just add comment.
2023-10-24 20:52:50 +08:00
d4fca3c67e [fix](load) fix load rpc timeout (#25701) 2023-10-24 19:50:44 +08:00
10f1957379 [feature](docker)add docker-iceberg init tables (#25424)
Add some init tables for docker-iceberg.
2023-10-24 19:29:57 +08:00
b16af25f7b [pipelineX](fix) fix union operator which return only const values (#25837) 2023-10-24 18:51:41 +08:00
2f600cdd89 [fix](Nereids) order by with cte cannot bind (#25794) 2023-10-24 05:40:56 -05:00
0147561c88 [Update](clucene) sync clucene version to latest (#25821) 2023-10-24 18:22:42 +08:00
ac79cbaf66 [enhancement](log) remove some temp debug log (#25809)
* [enhancement](log) remove some temp debug log

* update
2023-10-24 18:17:04 +08:00