Commit Graph

13648 Commits

Author SHA1 Message Date
cec3fcdf78 [typo](doc) modifying old parameters (#24565)
* modifying old parameters

* Supplementary demo
2023-09-22 09:09:06 +08:00
269b9eaf8b [typo](docs)add FAQ for broker load error: Cannot locate default realm (#24693) 2023-09-22 09:06:36 +08:00
090be20ca4 [cases](regresstests) add negative case for agg table and fix agg table support replace typ… #24715
add negative case for agg table
fix agg table support replace agg type for complex type , and Now We only support complex type with agg state for replace only
fix test output
2023-09-22 09:05:20 +08:00
e4c55cc5aa [fix](web): field in Controller is singleton, which would introduce thread safe problem, so remove it (#24667)
Co-authored-by: yiguolei <676222867@qq.com>
2023-09-22 08:58:01 +08:00
a9576df74a [typo](comments) Change the Chinese comments to English #24659 2023-09-22 08:56:56 +08:00
09e03247ec [chore](readability) Better readability of ExecNode.cpp #24733 2023-09-22 08:54:57 +08:00
665e878811 [fix](Compile) fix BE complie error #24756 2023-09-22 08:53:30 +08:00
6685875e72 [Improvement](statistics)Mark unfinished analysis job failed after master reboot
Before, the Pending/Running analysis tasks/jobs will stay in the unfinished status for ever after FE reboot, which is misleading.
In this pr, jobs/tasks are only logged to editlog when they finish. So the unfinished tasks/jobs are abandoned after reboot.
Also return without retry when analyze table cancelled by user in with sync mode.
2023-09-21 23:11:50 +08:00
48f3614ce8 [fix](nereids) a bug in estimation of intersect ndv (#24664) 2023-09-21 23:06:31 +08:00
a17034b7ff [fix](planner) do not support UDF without paramter (#24730)
for example:
CREATE ALIAS FUNCTION f() WITH PARAMETERS() AS now();
2023-09-21 22:23:21 +08:00
c9b2f4cb92 [workload](pipeline) Add cgroup cpu controller (#24052) 2023-09-21 21:49:33 +08:00
94907ca0f2 [improvement](brpc) change parking slot to 32 (#24567) 2023-09-21 21:35:46 +08:00
b8d8cfadfe [enhancement](delete) avoid null txn state after delete job committed (#24741) 2023-09-21 21:21:06 +08:00
58ab25ccaa Revert "[Feature](merge-on-write)Support ignore mode for merge-on-write unique table (#21773)" (#24731)
This reverts commit 3ee89aea35726197cb7e94bb4f2c36bc9d50da84.
2023-09-21 21:01:28 +08:00
ce14183c3a [fix](compile) fix GHA mac ut compile failure (#24738) 2023-09-21 21:00:23 +08:00
3bd341a1be [enhancement](schema) Add schema consistency check when add partition (#24707) 2023-09-21 20:35:45 +08:00
232226e75a [Improve](count on index) improve performance for count on index other than match (#24678) 2023-09-21 20:30:27 +08:00
6c19e106ad [fix](rest catalog)support set region for s3 (#24566)
Use REST Catalog to access S3 and support setting up regions:
```
CREATE CATALOG iceberg_rest_s3 PROPERTIES (
    "type"="iceberg",
    "iceberg.catalog.type"="rest",
    "uri" = "http://127.0.0.1:8181",
    "s3.endpoint" = "http://127.0.0.1:8010",
    "s3.access_key" = "admin",
    "s3.secret_key" = "password",
    "s3.region" = "us-east-1"
);
```
2023-09-21 20:19:43 +08:00
a48b19ceb6 [feature](Outfile) select into outfile supports to export struct/map/array type data to orc file format (#24350)
We do not support nested complex type in this pr.
2023-09-21 20:15:18 +08:00
8a226bbd63 [fix](start_be) ignore output from command -v (#24739) 2023-09-21 19:57:43 +08:00
7630fe7b7b [bug](node)fix dense_rank function in partition sort node return wrong rows (#24727) 2023-09-21 19:13:30 +08:00
8eb14eec7c [enhancement](baddisk) record bad disk in be_custom.conf to handle (#24639) 2023-09-21 18:31:58 +08:00
ec987b1b7d [fix](index compaction)ignore doc which dose not exist in destination segment (#24729) 2023-09-21 18:27:08 +08:00
cbf2e913e8 [test](config) change desired_max_waiting_jobs in regression pipeline (#24710) 2023-09-21 17:27:52 +08:00
85fb46bb71 [refactor](cache) Refactor preloaded timezone global cache (#24694)
Refactor preloaded timezone global cache
2023-09-21 17:26:41 +08:00
b9997d69fa [refactor](pipelineX) return error when local_state can not find id (#24360) 2023-09-21 16:04:08 +08:00
36c9366a8b [improve](tablet schema) add config to modify tablet schema recycle interval (#24602) 2023-09-21 15:57:11 +08:00
2098670001 [Fix](merge-on-write) Skip to check delete bitmap correctness in commit phase if the current tablet is converting (#24675) 2023-09-21 15:48:02 +08:00
aa92c2ddfb [minor](test) Add some ut for optimizer rule (#24562)
Add ut for

* ExistsApplyToJoin
* SimplifyDecimalV3Comparison
* SimplifyArithmeticComparisonRule
* SimplifyCastRule
2023-09-21 15:46:35 +08:00
5a463fedb8 [optimize](match) optimize unnecessary conversions (#24389) 2023-09-21 15:29:10 +08:00
ce57b99ce7 [fix](Nereids) colocate join could not work well on full outer join (#24700)
in previous PR #22979, we fix the output deriver of join. But we forgot
to change the util method JoinUtils#shouldColocateJoin to adjust the
change of physical properties derive.
we could not use join distribution type anymore since join could output
any distribute for full outer join.
2023-09-21 15:26:59 +08:00
4eb09ce1b2 [enhancement](config) do not abort when a disk is broken (#24692) 2023-09-21 15:21:42 +08:00
d31d99bf34 [pipeline](load) opt the pipeline load code (#24708)
opt the pipeline load code
2023-09-21 15:20:31 +08:00
Pxl
bc0f5dfd8f [Chore](checks) move sonar config file to be(#24712)
move sonar config file to be
2023-09-21 15:16:26 +08:00
61578f92e6 [chore](function name order) reorder math functions in doris_builtins_functions #24716 2023-09-21 15:07:50 +08:00
00b994fea2 [chore](exception) Add config item 'exit_on_exception' (#24529) 2023-09-21 14:51:05 +08:00
e34ec094cf [fix](memory) Fix Allocator check mem tracker limit #24711 2023-09-21 14:19:24 +08:00
bcf1806864 [opt](Nereids): GroupExpressionMatching don't need withGroupExpression (#24684) 2023-09-21 12:51:44 +08:00
7efaf9d0c8 [chore](add_partition) add some log to investigate problem (#24193) 2023-09-21 12:46:18 +08:00
4c79a76491 [improve](script) echo infos if java cmd is not valid when starting be (#24714)
Co-authored-by: stephen <hello-stephen@qq.com>
2023-09-21 12:43:24 +08:00
5b590bbfcf [feat](Nereids) add lambda func array_last and array_first (#24682) 2023-09-21 12:23:34 +08:00
a65dbb097c [enhancement](Nereids) when the sort key is equal to Literal, eliminate sort (#24669)
when the sort key is equal to Literal, eliminate sort. such as :

filter(a = 1)
    |
sort(a)

eliminate this sort(a)
2023-09-21 11:55:53 +08:00
Pxl
01b7cb8db7 [Bug](materialized-view) fix failed insert into mv meet default null (#24545)
fix failed insert into mv meet default null
2023-09-21 10:47:29 +08:00
ee5b307e63 [Fix](binlog) Add more log for ingest_binlog && Fix ingest_binlog not rewrite rowset_meta tablet_uid (#24617)
* Add more log for ingest_binlog && Fix ingest_binlog not rewrite
rowset_meta tablet_uid

Signed-off-by: Jack Drogon <jack.xsuperman@gmail.com>

* Add lost thrift TDebugProtocol

Signed-off-by: Jack Drogon <jack.xsuperman@gmail.com>

---------

Signed-off-by: Jack Drogon <jack.xsuperman@gmail.com>
2023-09-21 10:40:08 +08:00
f2f591e280 [fix](memory) Optimize memory exceed limit logs (#22655)
After memory exceeds the limit, print the top 15 task trackers with the largest memory.
After memory exceeds the limit, more detailed GC logs in stages.
fix large memory check.
2023-09-21 10:38:17 +08:00
b87ea68720 [Fix](statistics) Fix analyze olap table couldn't get partition names bug (#24696)
Call getPartitionNames to get all partitions while analyzing for olap table. Couldn't return NULL, otherwise analyze for olap table will do nothing.
2023-09-21 10:28:37 +08:00
ca73684d10 [feature](tools)draw a graphic profile (#24495)
### how to get profile.png
1. execute a sql file, and draw its profile  
          python3 profile_viewer.py -f[path to sql file] -t [query title]

2. draw a given profile
          python3 profile_viewer.py -qid [query_id] -t [query title]
    
    graphviz is required(https://graphviz.org/)
    on linux: apt install graphviz
    on mac: brew install graphviz

### related changes
reimplement rest api: /profile/json/{query_id} to return profile in json format. currently, json profile only contains two counters: RowsReturned and TotalTime
2023-09-21 10:24:35 +08:00
d62b59b620 [pipelineX](profile) Complete load profile (#24690) 2023-09-21 09:57:34 +08:00
0d20a61587 [fix](nereids)left outer join estimation (#24462)
A left join B on A.x=B.x and A.y=B.y
B.x and B.y make result tuple number scale out.
suppose A is scaled out by B.x N1 time, and scaled out by B.y N2 time, and N1 < N2.
we should choose N1 as the final scale out factor, not N2.

this pr impact on tpcds_sf100 59/17/29/25/47/40/54

before
query59 77295 75279 75230 75230
query17 22642 21566 21599 21566
query29 16508 16092 16006 16006
query25 20262 20571 21171 20571
query47 23571 23264 23107 23107
query40 3305 2849 3064 2849
query54 9052 8882 8715 8715
Total cold run time: 172635 ms
Total hot run time: 168044 ms

after
query59 56435 54717 53919 53919
query17 24167 22377 23237 22377
query29 16950 18325 16333 16333
query25 21478 22975 21358 21358
query47 24412 24611 23920 23920
query40 5491 4779 5176 4779
query54 8671 8664 8658 8658
Total cold run time: 157604 ms
Total hot run time: 151344 ms
2023-09-21 09:45:01 +08:00
4ca650f306 [improvement](jdbc catalog) Adjust function replacement order and add new function support (#24685) 2023-09-21 08:45:27 +08:00