Commit Graph

8735 Commits

Author SHA1 Message Date
fa052b1a87 [fix](Stmt)pre-block create stmt with column type ALL (#16757) 2023-02-16 15:05:13 +08:00
105a4fb41a [regression](fuzzy) Make pipeline engine fuzzy test mode (#16807) 2023-02-16 15:02:27 +08:00
da3650c1c1 [typo](docs) fix typo in the document (#16782) 2023-02-16 15:02:17 +08:00
a707bd4e57 [fix](doc)fix release 1.2.2 document (#16809) 2023-02-16 15:01:40 +08:00
0f7ebaf157 [doc](enhancement) fix some style (#16798) 2023-02-16 15:01:16 +08:00
b6f2dfa994 [test](Nereids) add not nullable test for scalar functions (#16498) 2023-02-16 11:57:19 +08:00
0bb6005143 [Improvement](thrift) optimize thrift messages (#16383)
Now we use a thrift message per fragment instance. However, there are many same messages between instances in a fragment. So this PR aims to extract the same messages and we only need to send thrift message once for a fragment
2023-02-16 11:07:46 +08:00
118ce9cb16 [Enhance](ComputeNode) change logic of BeSelectionPolicy.getCandidateBackends (#16737)
The previous logic is how many cn can be returned at most. Instead,
if the number of cn is less than expectBeNum, need to use mix to fill in,
until the number of cn equals with expectBeNum or mix nodes are also used up
2023-02-16 10:31:24 +08:00
bd3ea233f8 [doc](filecache) add file cache document (#16649) 2023-02-16 10:26:48 +08:00
70d234ca6d [bugfix](reader) make segment_overlapping meta correct (#16793) 2023-02-16 08:41:52 +08:00
3b26235e7e [typo](docs)Modified the description of preparing for the upgrade in the upgrade document (#16801) 2023-02-16 08:38:18 +08:00
958aee38e9 [fix](Nereids): fix Master Bors problem. (#16794) 2023-02-16 01:53:53 +08:00
de8d884ec3 [Fix](multi catalog)Fix iceberg parquet file doesn't have iceberg.schema meta problem (#16764)
To support schema evolution, Iceberg add schema information to Parquet file metadata.
But for early iceberg version, it doesn't write any schema information to Parquet file.
This PR is to support read parquet without schema information.
2023-02-16 00:08:59 +08:00
5c29a9ef1a [community](team) add new PMC members and committers (#16796) 2023-02-15 23:07:16 +08:00
dd06cc7609 [pipeline](shuffle) Improve broadcast shuffle (#16779)
Now we reuse buffer pool for broadcast shuffle on pipeline engine. This PR ensures that a pipeline with a broadcast shuffle sink will not be scheduled if there are no available buffer in the buffer pool
2023-02-15 22:03:27 +08:00
611d9aca10 [feature](docker)Add Docker Broker Init Script (#16733)
Add Docker Broker Init Script
2023-02-15 19:26:01 +08:00
ecadd4b392 [feature](Nereids): add OuterJoinAssoc rule (#16676)
* move isIntersecting.

* [feature](Nereids): add OuterJoinAssoc rule

* fix bug

* fix
2023-02-15 19:19:28 +08:00
fe9b2fb803 fix bug, rename thread (#16780) 2023-02-15 18:51:22 +08:00
Pxl
f4ed52906a [Feature](Materialized-View) change mv rewrite from bottom up to up bottom && Compatible with old … (#16750)
1.change mv rewrite from bottom up to up bottom
2.compatible with old version mv
3.restore some ut codes (but disable)
4. fix some ut introduced by [fix](planner)fix bug for missing slot #16601 and [Feature](Materialized-View) support multiple slot on one column in materialized view #16378
2023-02-15 17:24:46 +08:00
0c56a4622c [Feature](struct-type) Add implicitly cast for struct-type (#16613)
Currently not support insert {1, 'a'} into struct<f1:tinyint, f2:varchar(20)>
This commit will support implicitly cast the char type in the struct to varchar.
Add implicitly cast for struct-type.
2023-02-15 16:55:00 +08:00
Pxl
f50edff59d [Chore](build) enable fallthrough check annd fix some fallthrough bug (#16748)
* enable fallthrough check annd fix some fallthrough bug

* fix

* fix
2023-02-15 15:58:43 +08:00
585b74b175 [chore](workflow) Fix Ubuntu package conflicts by skipping apt upgrade (#16754)
In `Build Third Party Libraries (Linux)` job, some errors occur due to the package conflicts. This PR fixes these errors by skipping the command `apt upgrade`.

```
Unpacking odbcinst1debian2:amd64 (2.3.11) ...
dpkg: error processing archive /tmp/apt-dpkg-install-SY6NPA/43-odbcinst1debian2_2.3.11_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libodbcinst.so.2.0.0', which is also in package libodbcinst2:amd64 2.3.9-5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)1
```
2023-02-15 15:22:08 +08:00
a6bda81dba [Fix](profile) fix /query_profile action. (#16540)
Co-authored-by: wangxiangyu@360shuke.com <wangxiangyu@360shuke.com>
2023-02-15 14:27:21 +08:00
ad46e529d8 [feature](Nereids): Infer isNotNull from filter and eliminate OuterJoin (#16411) 2023-02-15 13:33:21 +08:00
0664186efe fix doc (#16769) 2023-02-15 13:25:31 +08:00
13134c1bfe [fix](fe)should check slot from both lhs and rhs of outputSmap of join node for colocate join (#16738)
colocated join is depended on if the both side of the join conjuncts are simple column with same distribution policy etc. So the key is to figure out the original source column in scan node if there is one. To do that, we should check the slot from both lhs and rhs of outputSmap in join node.
2023-02-15 12:44:20 +08:00
69c70d27bd [Refactor](auth) Add AccessController to support customized authorization (#16679)
In current implementation, the class Auth is used for:

Manager all authentication and authorization info such as user, role, password, privileges.
Provide an interface for privilege checking
Some user may want to integrate external access management system such as Apache Ranger.
So we should provide a way to let user set their own access controller.

This PR mainly changes:

A new class SystemAccessController
This access controller is used to check the global level privileges and resource privileges.

A new interface CatalogAccessController
This interface is used to check catalog/database/tbl level privileges.
It has a default implements InternalCatalogAccessController.

All privilege checking methods are moved from Auth to either SystemAccessController or
InternalCatalogAccessController

A new class AccessControllerManager
This is the entry point of privilege authentication. All methods previously called from Auth
now are called from AccessControllerManager

Now, user can implement the interface CatalogAccessController to use their own access controller.
And when creating external catalog, user can specified the access controller class name, so that
different external catalog can use different access controller.
2023-02-15 11:40:44 +08:00
9b8c91e18c [improvement](rowset reader) fix possible memleak (#16680)
* [improvement](rowset reader) fix possible memleak

* fix be UT
2023-02-15 11:13:31 +08:00
db9319b881 [refactor](Nereids) add two phase sort (#16586)
1. Add a rule that generates two-phase sort and one-phase sort
2. Add phase for PhysicalSort

TODO: I'll remove PhysicalLocalSort in next PR.
2023-02-15 10:40:57 +08:00
92417cedec MOD: Reduce clang version (#16755) 2023-02-15 08:58:17 +08:00
040a715251 [docs](releasenote)1.2.2 release note (#16766) 2023-02-15 08:57:52 +08:00
d013d529c8 [Feature](ipv6)Support IPV6 (#14063)
Support IPV6 in Apache Doris, the main changes are:
1. enable binding to IPV6 address if network priority in config file contains an IPV6 CIDR string
2. BRPC and HTTP support binding to IPV6 address
3. BRPC and HTTP support visiting IPV6 Services
2023-02-14 21:43:10 +08:00
7482b6bad2 [fix](cooldown) Add cold_compaction_lock to serialize any operations which may delete the input rowsets of cold data compaction (#16742)
Add cold_compaction_lock to serialize tablet clone, cold data compaction and follow cooldowned data
2023-02-14 21:38:33 +08:00
acf5540a9f [fix](planner)Fix colocate query failed #16459
Issue Number: close #16458
Co-authored-by: wangbo36@meituan.com <wangbo36@meituan.com>
2023-02-14 18:51:28 +08:00
4444abc828 avoid contruct groupExpr in graph-simplifier (#16436)
Signed-off-by: xiejiann <jianxie0@gmail.com>
2023-02-14 17:03:21 +08:00
784c27deeb [Bug](shuffle) fix mem leak in data stream sender (#16685) 2023-02-14 16:40:13 +08:00
Pxl
ea78184551 [Feature](Materialized-View) support multiple slot on one column in materialized view (#16378) 2023-02-14 16:10:50 +08:00
4a6fd7cc30 [feature](docker) Add Docker BE computer node Interface (#16630) 2023-02-14 15:44:26 +08:00
f1b9185830 [feature](cooldown) Implement cold data compaction (#16681) 2023-02-14 15:21:54 +08:00
5e80823c86 [improvement](dynamic-partition) add storage_medium property for dynamic partition (#16648) 2023-02-14 15:14:52 +08:00
fb0d08ff4c [fix](mark join) fix bug of mark join with other conjuncts (#16655)
Fix bug that probe_index is not increased for mark hash join with other conjuncts.
2023-02-14 14:47:15 +08:00
af1329936e [Improvement](ES)Supprt datav2 and datetimev2 for es query (#16633)
* Supprt datav2 and datetimev2 for es query
2023-02-14 14:47:00 +08:00
e1ef03b9d3 [Improvement](static variable) Fix exprs/MathFunctions static variable (#16687)
Use static constexpr variable in impl file to avoid multi-addressing
Remove unused my_double_round in vec/functions/math.cpp
2023-02-14 14:46:29 +08:00
0d9714b179 [Fix](multi catalog)Support read hive1.x orc file. (#16677)
Hive 1.x may write orc file with internal column name (_col0, _col1, _col2...).
This will cause query result be NULL because column name in orc file doesn't match
with column name in Doris table schema. This pr is to support query Hive orc files with internal column names. 

For now, we haven't see any problem in Parquet file, will send new pr to fix parquet if any problem show up in the future.
2023-02-14 14:32:27 +08:00
Pxl
b1347f4c38 [Chore](build) make compile option work on C objects && some refactor of cmakelists (#16451)
make compile option work on C objects && some refactor of cmakelists
2023-02-14 13:35:20 +08:00
fc1544701f [typo](docs) fix fe config description (#16686)
* 调整
2023-02-14 10:59:24 +08:00
af5dc7565e [bug](udf) fix udf return type of decimal check scale must is 9 (#16497) 2023-02-14 10:53:53 +08:00
bceb0b58a1 [fix](udf) fix create udf function with uppercase database name can't recognize (#16410) 2023-02-14 10:52:11 +08:00
1b83829cff [improvement](block exception safe) make block queue exception safe (#16657)
* [improvement](block exception safe) make block queue exception safe

This is part of exception safe: #16366.

---------

Co-authored-by: yiguolei <yiguolei@gmail.com>
2023-02-14 10:50:21 +08:00
69d3878d9b [Bug](CTAS): Ctas rollback ignore some case (#16255)
Currently, some error are caught due to table can not drop when execute ctas,
I add a session variable to control drop or not table.
2023-02-14 09:19:37 +08:00