Commit Graph

5948 Commits

Author SHA1 Message Date
5dd43fff53 [improvement] alloc aligned memory for block bloom filter to work with jemalloc (#10446) 2022-07-01 16:05:48 +08:00
558a21d7de [style](*): fix declarationOrder error by rearrange code (#10347) 2022-07-01 15:40:34 +08:00
f998c0b044 [Enhancement](Nereids) push down predicate through join (#10462)
Add filter operator to join children according to the predicate of filter and join, in order to achieving  predicate push-down

Pattern: 
```
      filter
         |
       join
      /     \
child    child
```

Transform:
```
      filter
         |
       join
      /     \
filter     filter
 |            |  
child     child
```
2022-07-01 15:39:01 +08:00
f164d094e8 [style](*): keep line break. (#10526) 2022-07-01 15:31:19 +08:00
e3d9f9430e [docs] Change the problem field in SSB test (#10540) 2022-07-01 15:30:35 +08:00
ca0906626f [BUG] fix bitmap function bug (#10502)
* fix bitmap function bug

* add regression test
2022-07-01 15:30:16 +08:00
97996c9275 [fix](Insert) fix 5 concurrent "insert...select..." OOM (#10501)
* [hotfix](dev-1.0.1) 5 concurrent insert...select... OOM

Co-authored-by: minghong <minghong.zhou@163.com>
Co-authored-by: yiguolei <yiguolei@gmail.com>
2022-07-01 15:29:26 +08:00
a44a222f76 [Feature](neireids) Add support of ProjectNode in PlanTranslator (#10499)
Since we will do the column prune with project node, so we need compact the project outputs to the PlanNode in PhysicalPlanTranslator::visitPhysicalProject

1. Add support for ProjectNode to make column prune available.
2. Add SortNode to PlanFragment when it is unpartitioned piggyback
2022-07-01 13:17:49 +08:00
d0b757c03a [bugfix](fe) fix add follower failed due to conflict socket . (#10429) 2022-07-01 11:12:36 +08:00
2708289816 [Doc]Change the download url for the binary package #10527 (#10528) 2022-07-01 10:47:14 +08:00
d52da675aa [docs](array-type)Fix keywords in array functions' help documents (#10500)
* save code

* save code
2022-07-01 10:43:04 +08:00
659e863bd7 [bugfix] fix tcmalooc hook cancel deadlock (#10514) 2022-07-01 10:41:59 +08:00
Pxl
a9d23ce337 [refactor] remove collator (#10518) 2022-07-01 10:35:32 +08:00
06e436b7cc [bugfix]dump_one_line failed to dump last column (#10522)
Co-authored-by: cambyzju <zhuxiaoli01@baidu.com>
2022-07-01 10:33:49 +08:00
6c2e76e39f [enhancement](proc) Support showing more details in show proc "/dbs" (#10471) 2022-07-01 10:27:38 +08:00
0d99b27d89 [fix] (mem tracker) Fix BE hangs at startup, stuck in tcmalloc hook call ExecEnv::GetInstance() (#10517)
1. Added flag exec_env_existed to indicate whether ExecEnv Instance is created.
2. ThreadMemTrackerMgr::add_tracker fail when USE_MEM_TRACKER=OFF, add USE_MEM_TRACKER compile option.
2022-07-01 10:20:53 +08:00
d43d3fc35f [improvement] modify comment " to ', to be compatible with mysql. (#10327) 2022-07-01 08:59:29 +08:00
Pxl
7571263ed7 [Bug][Vectorized] fix timestamp(datetime) not regist right (#10525) 2022-07-01 07:37:44 +08:00
aab7dc956f [refactor](load) Remove mini load (#10520) 2022-06-30 23:21:41 +08:00
18ad8ebfbb [improvement]Add reading by rowids to speed up lazy materialization (#10506) 2022-06-30 21:03:41 +08:00
aae619ef2c [feature-wip](nereids) Adjust plan execution flow and fix physical bugs (#10481)
Organize the plan process, improve the batch execution of rules and the way to add jobs.
Fix the problem that the condition in PhysicalHashJoin is empty.
2022-06-30 20:07:48 +08:00
77b1565b96 [feature](nereids) Support analyze for test SSB (#10415)
Follow-up #10241, this PR go through parse and analyze the SSB and add this functions:

1. support parse parenthesizedExpression
2. support analyze LogicalAggregate and LogicalSort
3. replace the functionCall to UnboundFunction and BoundFunction
4. support sum aggregate funciton
5. fix the dead loop in the ExpressionRewriter
6. refine some code
2022-06-30 16:26:39 +08:00
d9f2da8cf0 [bugfix] temporarily disable RF code to avoid core dump caused by vexpr destruction (#10504)
Runtime filter handling in volap_scann_ode may cause double free in VExprContext, temporarily disable it to avoid it.
2022-06-30 14:54:44 +08:00
620faf4959 [feature-wip](multi-catalog) add auth&catalog check (#10480)
This pr follows up [#10435](https://github.com/apache/doris/pull/10435). [#10435](https://github.com/apache/doris/pull/10435) had supported catalog in sql syntax, but some doris statements are only valid in internal catalog. In order to remind users of the scope of catalog usage, it is necessary to throw errors to exceptions of using catalog in the analyze phase.

## How does it effect origin behavior
It is fully compatible with the previous sql statements. Meanwhile, if using the internal catalog in the statements that all the usage of the internal catalog, the syntax is still valid, but using the external catalog will directly throw errors. For example:
```
MySQL [(none)]> show data from tpch10.lineitem;
+-----------+-----------+------------+--------------+----------+
| TableName | IndexName | Size       | ReplicaCount | RowCount |
+-----------+-----------+------------+--------------+----------+
| lineitem  | lineitem  | 210.809 MB | 32           | 6001215  |
|           | Total     | 210.809 MB | 32           |          |
+-----------+-----------+------------+--------------+----------+

MySQL [(none)]> show data from internal_catalog.tpch10.lineitem;
+-----------+-----------+------------+--------------+----------+
| TableName | IndexName | Size       | ReplicaCount | RowCount |
+-----------+-----------+------------+--------------+----------+
| lineitem  | lineitem  | 210.809 MB | 32           | 6001215  |
|           | Total     | 210.809 MB | 32           |          |
+-----------+-----------+------------+--------------+----------+

MySQL [(none)]> show data from hive.tpch10.lineitem;
ERROR 1105 (HY000): errCode = 2, detailMessage = External catalog 'hive' is not allowed in 'ShowDataStmt'
```
2022-06-30 12:04:23 +08:00
468040974e [compile]Update init-env.sh (#10451) 2022-06-30 11:28:06 +08:00
d259770b86 [Fix] avoid core dump cause by malformed bitmap type data (#10458) 2022-06-30 11:27:22 +08:00
c62c2e308f [chore]replace checkstyle action with mvn checkstyle:check (#10474) 2022-06-30 11:20:50 +08:00
ec6620ae3e [feature-wip](array-type) add function arrays_overlap (#10233) 2022-06-30 08:12:29 +08:00
73999feca7 [doc] mod alter-table-replace (#10324)
Modify alter-table-replace to alter-table-replace-column, move alter-table-replace to data-definition-statements.
2022-06-30 08:11:59 +08:00
Pxl
2c35abe940 [bugfix]fix core dump on outfile with expr (#10491)
remove log
2022-06-29 20:38:49 +08:00
e42adbb959 Fix compilation error reported by clang (#10494) 2022-06-29 20:38:06 +08:00
4ec6e3ee81 [refactor] Remove debug action since it is never used. (#10484)
Co-authored-by: yiguolei <yiguolei@gmail.com>
2022-06-29 20:37:51 +08:00
9b6ed1525d [fix](nereids) extractPlan should use physical expressions but is logical expressions actually (#10483)
extractPlan should use physical expressions but is logical expressions actually
2022-06-29 19:38:10 +08:00
c695ccb827 [fix](proc) Fix show proc '/current_query_stmts' error due to wrong index for execTime (#10488)
Co-authored-by: caiconghui1 <caiconghui1@jd.com>
2022-06-29 17:41:47 +08:00
Pxl
b9223d1657 [Build] fix build fail on clang (#10445) 2022-06-29 15:08:24 +08:00
Pxl
8e713ddfcf [Feature] [Vectorized] support vectorized schema-change (#10187) 2022-06-29 15:07:21 +08:00
Pxl
6a566ccb74 [Enhancement][Vectorized] add constexpr_loop_match (#10283) 2022-06-29 14:58:50 +08:00
d1055eacb4 [feature-wip](array-type) Use uppercase to describe columns with array type (#10193)
Use uppercase to describe columns with array type.
2022-06-29 14:07:27 +08:00
5f73668626 [log] add more error info for hdfs reader writer (#10475) 2022-06-29 12:02:27 +08:00
abd10f0f3e [feature-wip](multi-catalog) Impl FileScanNode in be (#10402)
Define a new file scanner node for hms table in be.
This file scanner node is different from broker scan node as blow:
1. Broker scan node will define src slot and dest slot, there is two memory copy in it: first is from file to src slot
    and second from src to dest slot. Otherwise FileScanNode only have one stemp memory copy just from file to dest slot.
2. Broker scan node will read all the filed in the file to src slot and FileScanNode only read the need filed.
3. Broker scan node will convert type into string type for src slot and then use cast to convert to dest slot type,
    but FileScanNode will have the final type.

Now FileScanNode is a standalone code, but we will uniform the file scan and broker scan in the feature.
2022-06-29 11:04:01 +08:00
9aa800141d [fix](ut)(nereids) the check bound function lacks recursive processing (#10357) 2022-06-29 10:40:13 +08:00
8cbdbb5658 [Enhancement] a better vec version for count_zero_num (#10472) 2022-06-29 10:26:42 +08:00
deeb3028ad [Enhancement] [Memory] [Vectorized] Stress test and optimize memory allocation (#9581)
* vec stress test, Allocator introduce chunkallocator

* fix comment
2022-06-29 02:57:51 +08:00
0a36c34326 [feature](nereids) costAndEnforcerJob interim solution (#10468)
In order to complete the ssb test, temporarily increase the implementation of costAndEnforcerJob, and create an OptimizeGroupjob for all children of the group.
2022-06-28 18:45:23 +08:00
f5936aa7ce [enhancement](Nereids): add more implmentation rules. (#10335)
Add more implmentation rules.

Current some `logical` and `physical` operator is different. I change some code to make them match.

Implementation
- Sort:only heap sort
- Agg
- OlapScan
2022-06-28 17:08:33 +08:00
7898c818e9 Revert "[improvement]Do not lazily read dict encoded columns (#10420)" (#10466)
Reason:
1. Some queries performance degradation
2. Coredump bug: #10419

This reverts commit 904e7576797c796b809823647a769bc1d4569115.
2022-06-28 15:43:48 +08:00
17eb8c00d3 [feature] add table valued function framework and numbers table valued function (#10214) 2022-06-28 14:01:57 +08:00
2f30c7cf03 [doc] Update the URL download link address in Quick Start (#10457) 2022-06-28 13:53:07 +08:00
1f2bf39140 [feature-wip](multi-catalog) get catalog name from TableName (#10435) 2022-06-28 10:42:37 +08:00
498a80547c [fix](fe-ut) fix fe ut and build.sh bug (#10432) 2022-06-27 19:01:05 +08:00