Commit Graph

1415 Commits

Author SHA1 Message Date
bf4159c74d Remove unused keyword (#5676) 2021-04-20 09:11:45 +08:00
4313639157 [Metric] Add metrics for routine load (#5641)
* [Metric] Add metrics for routine load

Add following metrics for routine load:
doris_fe_job{job="load", type="ROUTINE_LOAD", state="NEED_SCHEDULE"} 0
doris_fe_job{job="load", type="ROUTINE_LOAD", state="RUNNING"} 1
doris_fe_job{job="load", type="ROUTINE_LOAD", state="PAUSED"} 0
doris_fe_job{job="load", type="ROUTINE_LOAD", state="STOPPED"} 0
doris_fe_job{job="load", type="ROUTINE_LOAD", state="CANCELLED"} 0

* change UTC
2021-04-19 09:26:58 +08:00
6be03f339c [Bug] Fix bug that tablets are not dropped when replacing tables (#5627)
When replacing table with swap = false, the origin table's tablets
should be removed from tablet inverted index.

Co-authored-by: xxiao2018 <benghua3_1@sina.com>
2021-04-19 09:26:19 +08:00
b6c0767754 [Bug] Fix alter table failed when none of new load jobs succeed on alter replica (#5617)
* [Bug] Fix alter table failed when none of new load jobs succeed on altering replica

Co-authored-by: caiconghui <caiconghui@xiaomi.com>
2021-04-15 15:55:57 +08:00
9403157da4 [DOC] Add docs of warning of Docker env 1.3 of JDK 11 and some doc of FE config. (#5628) 2021-04-14 00:10:30 +08:00
75db273b93 [Doris On ES][WIP] Support external ES table with SSL secured and configurable node sniffing (#5325)
Support external ES  table with `SSL` secured and configurable node sniffing
2021-04-12 11:23:49 +08:00
a25e3afa5b [Colocate plan][Step1] Colocate join covers more situations (#5521)
The old colocate join can only cover the case where the child is hash or scan.
In fact, as long as the child's data distribution meets the requirements,
no matter what the plan node on the child node is, a colocate join can be performed.
2021-04-11 22:02:03 +08:00
9c7d8d2e98 [Bug] Fix bug that isPreAggregation is incorrectly set (#5608)
1. The MaterializedViewSelector should be reset for each scan node
2. On the BE side, columns with delete conditions must be added to the return column.
2021-04-09 14:13:06 +08:00
514d245a1f make like predicate operator public (#5552)
Co-authored-by: wangxixu <wangxixu@xiaomi.com>
2021-04-08 09:14:15 +08:00
3e34fe2529 [FE] [BUG] GroupingFunctionCallExpr: realChildren should be copied too. (#5584) 2021-04-08 09:11:11 +08:00
621c89f7b9 [Enhance] Filter all non-journal db when getting journal db names (#5605) 2021-04-08 09:09:56 +08:00
18c2553ef8 [FE][Bug] Update Spark version to fix a security issue (#5593)
Fix CVE-2020-9480: Apache Spark RCE vulnerability in
auth-enabled standalone master
https://spark.apache.org/security.html#CVE-2020-9480
2021-04-06 11:02:04 +08:00
5012fdc049 [FE][Fix]Update commons-collections to fix a security issue (#5595)
Fix CVE-2017-15708
https://www.cvedetails.com/cve/CVE-2017-15708/
2021-04-06 11:00:19 +08:00
68303ea7f3 [FE][Bug]Update log4j-web to fix a security issue (#5594)
Fix CVE-2017-5645

In Apache Log4j 2.x before 2.8.2, when using the
TCP socket server or UDP socket server to receive
serialized log events from another application, a
specially crafted binary payload can be sent that,
when deserialized, can execute arbitrary code.

https://www.cvedetails.com/cve/CVE-2017-5645/
2021-04-06 10:59:40 +08:00
05487e38ae [Bug] upgrade log4j version from 2.12.1 to 2.14.0 to fix performance issue in JDK11 using ZGC (#5591)
Co-authored-by: caiconghui <caiconghui@xiaomi.com>
2021-04-06 10:59:08 +08:00
dce66c7329 [bug-fix] Fix cluster property in hadoop/broker load (#5587)
The cluster property has been removed from load stmt which is incorrect. It caused user could not create hadoop/broker load.
Fix #5586
2021-04-02 11:54:46 +08:00
0490b156c8 [Bug] Fix bug that call frontend service failed when rpc_timeout is equal with publish_timeout (#5564)
* [Bug] Fix bug that call frontend service failed when rpc_timeout is equal with publish_timeout

*This PR is to fix bug that call frontend service failed when rpc_timeout is equal with publish_timeout and fix some small issues with log

Co-authored-by: caiconghui [蔡聪辉] <caiconghui@xiaomi.com>
2021-03-30 19:50:42 +08:00
ce015b364a [Enhance] Support to show more details for 'SHOW TABLES' (#5520)
Support to show more details for 'SHOW TABLES', it's useful for thirdparty monitoring systems.
2021-03-27 18:58:14 +08:00
ad67dd34a0 update gcc to gcc 10 and support c++17 (#5394)
* update gcc to gcc 10 and support c++17
    update brpc to 0.9.7
    update boost to 1.73
    remove third-party boost 1.54 for mysql

* update cmake version

* ignore jdk version

* remove unused patch

* avoid use SYS_getrandom call
2021-03-25 09:30:38 +08:00
fa9e5c18dc [FE] Improve StreamLoadPlanner error log. (#5549) 2021-03-24 09:33:08 +08:00
cef3cbc53a [Bug] Fix bug that the last column may be null when using multibytes separator (#5534) 2021-03-23 09:35:30 +08:00
ae3e9df8c7 (#5532) RollupJobV2 support identify cluster when replay (#5533) 2021-03-23 09:34:51 +08:00
3a96b6dfbd [Bug] Fix the bug of rowset file being deleted by mistake (#5541)
* [Bug] Fix the bug of rowset file being deleted by mistake
2021-03-23 09:33:36 +08:00
4085b194d6 [Bug] Fix multi broker load bug (#5543)
The storage type of broker desc should be set due to the type of load job
2021-03-22 09:53:17 +08:00
c97ddd7f35 [Enhance] Show brokers' hostname (#5522)
Show brokers' hostname in table to keep the same with show proc for backends and frontends.
2021-03-21 20:46:25 +08:00
6d27ae5a10 [Enhance] Support unescape some invisible char in separator (#5524) 2021-03-21 11:22:33 +08:00
b9d92e0fcb [Profile] Visualize the query plan and query profile (#5475)
Add command:
1. EXPLAIN GRAPGH SELECT ...
2. SHOW QUERY PROFILE "..."

Document will be added in next PR

Change-Id: Ifd9365e10b1f9ff4fdf8ae0556343783d97545f0
2021-03-21 11:18:50 +08:00
087fd8159b [Bug] Fix bug that the stale rowset file will not be deleted (#5527)
1. If cumulative compaction compact only one rowset, the old rowset will not be put into `stale_rowset_meta_map`

2. Show rowset id in `/api/compaction/show`

Co-authored-by: xxiao2018 <benghua3_1@sina.com>
2021-03-17 22:31:05 +08:00
f8e89bbbe3 [Improve] Support set multi variables in SET_VAR (#5513)
Sometimes we need to set multi variables for a single query stmt. like:

SELECT /* SER_VAR(var1=xx, var2=xx) */ ...
2021-03-17 09:27:45 +08:00
4d36bf734a [Refactor] Make sure the singleton thread is safe (#5428)
The following class
org.apache.doris.clone.ColocateTableBalancer
org.apache.doris.common.proc.ProcService
org.apache.doris.rpc.BackendServiceProxy
org.apache.doris.common.util.ProfileManager
org.apache.doris.qe.HelpModule
org.apache.doris.common.publish.ClusterStatePublisher
is not safe in multiple thread environment. This PR is to implement a secure singleton mode.
The class org.apache.doris.common.publish.ClusterStatePublisher singleton method is not used.
2021-03-15 10:06:32 +08:00
4b316e4c3f [Outfile] Support exporting query result to local disk (#5489)
1.
User can export query result to local disk like:

`select * from tbl into outfile ("file:///disk1/result_");`

And modify the return result to show the details of export:

```
mysql> select * from tbl1 limit 10 into outfile "file:///home/work/path/result_";
+------------+-----------+----------+--------------+
| FileNumber | TotalRows | FileSize | URL          |
+------------+-----------+----------+--------------+
|          1 |         2 |        8 | 192.168.1.10 |
+------------+-----------+----------+--------------+
```

2.
Support create a mark file after export successfully finished.

Co-authored-by: chenmingyu <chenmingyu@baidu.com>
2021-03-14 15:39:46 +08:00
543ed46bc3 (#5390)fix NPE when replay colocate group (#5391)
* (#5390)fix NPE when replay colocate group

* remove table id from colocate group when duplicate create table

* remove tablet id when duplicate create table,just like ddlexception

* add ut
2021-03-12 14:24:34 +08:00
315b801561 [Bug] Fix bug that the log message is wrong when ReportHandler can not find tablet meta from TabletInvertedIndex (#5497)
* [Bug] Fix bug that the log message is wrong when ReportHandler can not find tablet meta from TabletInvertedIndex

Co-authored-by: caiconghui [蔡聪辉] <caiconghui@xiaomi.com>
2021-03-12 10:43:07 +08:00
689602e686 [Enhancement] Support Pallralel Merge In Exchange Node (#5468)
Support Parallel Merge In Exchange Node
2021-03-11 22:34:18 +08:00
89bfbdf811 [Bug][Spark Load] Spark Repository throws an exception when user configures spark_ resource_ path (#5417) 2021-03-11 22:23:26 +08:00
6cbbc36ea1 [Export] Expand function of export stmt (#5445)
1. Support where clause in export stmt which only export selected rows.

The syntax is following:

Export table [table name]
    where [expr]
To xxx
xxxx

It will filter table rows.
Only rows that meet the where condition can be exported.

2. Support utf8 separator

3. Support export to local

The syntax is following:

Export table [table name]
To (file:///xxx/xx/xx)

If user export rows to local, the broker properties is not requried.
User only need to create a local folder to store data, and fill in the path of the folder starting with file://

Change-Id: Ib7e7ece5accb3e359a67310b0bf006d42cd3f6f5
2021-03-11 20:43:32 +08:00
079b764136 [Bug] Fix thread safe problem when check whether olap table is stable (#5478) 2021-03-10 19:12:00 +08:00
7aad412539 [MINOR] Remove offensive words (#5495) 2021-03-10 18:36:02 +08:00
b4c8e9de7f [Bug] Fix create view faild when StringLiteral in SelectStmt contains single quotes (#5484)
* [Bug] Fix create view faild when StringLiteral in SelectStmt contains single quotes

Co-authored-by: caiconghui [蔡聪辉] <caiconghui@xiaomi.com>
2021-03-10 14:47:02 +08:00
bd53f407aa [Bucket Shuffle Join] Support the some featrue of Bucket Shuffle Join (#5459)
1.Support Bucket Shuffle Join when left table is colocate table or Colocate/Bucket Bucket Shuffle Join
2.Enable Local Rumtime Filter when there is Bucket Shuffle Join and Colocate Join
3.Add Doc for Bucket Shuffle Join
2021-03-09 14:47:59 +08:00
e023ef5404 [Load] Support multi bytes LineDelimiter and ColumnSeparator (#5462)
* [Internal][Support Multibytes Separator] doris-1079
support multi bytes LineDelimiter and ColumnSeparator
2021-03-09 09:35:39 +08:00
a1160bcd99 [Bug] Fix bug that data lost when doing backup job (#5473)
Backup job may delete the tablet of existing table, which cause data lost.
2021-03-08 09:32:16 +08:00
ae364dea3d [BUG] fix DECHECK Fail While Call UDF (#5457) 2021-03-06 16:13:30 +08:00
c95f00d508 [Bug] Fix bug that the image cannot be pulled after the new fe nodes added (#5418)
* [Bug] Fix bug that the image cannot be pulled after the new fe node is added

This is because httpv2 modified the response body of the "/info" api,
causing FE to fail to obtain info from this api.
And the system did not exit correctly.

This will also cause issues in issue #5292
2021-03-05 10:50:54 +08:00
c9ddd88e14 [Rewrite]Rewrite from_unixtime to reduce calling this function (#5444)
from_unxitime is a cpu-exhausted function.
SQL: select filed from table where from_unixtime(field) > '2021-03-02',
if there are one million rows of data. Function from_unixtime will be called one million times,
which will make query very slow.

In issue #5443, we try to rewrite from_unixtime into timestamp to reduce calling this function.
This rewriting can bring 2 times query performance improvement.
2021-03-04 22:31:28 +08:00
77485521d3 [Enhancement] move FeMetaVersion.java from fe-common to fe-core #5426 (#5427)
Currently, FeMetaVersion.java is in fe-common, users may forget to copy fe-common.jar when upgrading the service.
It's really dangerous because the data may be corrupted and can not be recovered.
2021-03-04 22:25:03 +08:00
8c34013cf6 [Enhance] Remove order by from insert into select (#5419)
remove unnecessary order by of insert into select stmt
2021-03-04 22:23:16 +08:00
bfce98f4b9 [Bug] The toString() method in PartitionInfo class. Property information strings are concatenated together (#5407) 2021-03-04 22:22:37 +08:00
5a6be411da [Ut] Add drop meta unit test and remove some redundant code in Alter (#5395)
* [Ut] Add drop meta unit test and remove some redundant code in Alter

Co-authored-by: caiconghui [蔡聪辉] <caiconghui@xiaomi.com>
2021-03-04 21:53:31 +08:00
7a41629fbe [Audit] Support builtin load audit function to record successful bulk load job (#5183)
* [Audit] Support builtin load audit function to record successful bulk load job

Co-authored-by: caiconghui [蔡聪辉] <caiconghui@xiaomi.com>
2021-03-03 17:01:02 +08:00