Commit Graph

5948 Commits

Author SHA1 Message Date
43ff796419 [typo](doc)Solve the problem that the official website of the document fails to compile and publish (#11762)
Solve the problem that the official website of the document fails to compile and publish
2022-08-13 23:47:17 +08:00
031fba4259 [typo](fix)Fix community documentation link errors (#11758)
Fix community documentation link errors
2022-08-13 21:24:54 +08:00
db83f37256 [doc](typo)Add doc sidebars (#11749)
add doc sidebars
2022-08-13 20:46:52 +08:00
ec5d4e3d17 print physical memory and virtual memory separately. (#11747) 2022-08-13 13:56:49 +08:00
854b4b1b47 [fix](storage-policy) fix bug that missing field when refreshing storage policy (#11580)
1. Change all required fields to optional
    Although they all "required", but it not recommended to use `required`, because it is hard to modify in future.
2. Fix a missing field bug
2022-08-12 20:11:54 +08:00
2827ced1f6 [improvement](doc)Import data example from hive partition table (#11732)
Import data example from hive partition table
2022-08-12 19:38:45 +08:00
abd2eb4fa1 [Bug](date function) Fix bug for date format %T (#11729)
* [Bug](date function) Fix bug for date format %T
2022-08-12 19:29:58 +08:00
408dbf840b [bugfix](schema change) when there is a string column with delete predicate, the schema change may core (#11739)
* [bugfix](schema change) when there is a string column with delete predicate, the schema change may core

Co-authored-by: yiguolei <yiguolei@gmail.com>
2022-08-12 19:29:22 +08:00
1c4927eac3 [fix](core)fix bug for status not init(#11730) 2022-08-12 17:42:37 +08:00
58822c7b55 [bugfix](odbc) return error if convert unicode failed (#11728)
* [bugfix](odbc) return error if convert unicode failed
2022-08-12 17:28:48 +08:00
ed47a3bb6d [enhancement](Nereids)refactor sort plan in nereids (#11673)
1. rename PhysicalHeapSort to PhysicalQuickSort
2. add LogicalTopN and PhysicalTopN
3. add implementation rule for LogicalTopN
4. add a interface Sort for both logical and physical sort
5. add a interface TopN for both logical and physical top-n
6. add a AbstractPhysicalSort as super class of PhysicalQuickSort and PhysicalTopN
2022-08-12 17:08:23 +08:00
887de4b465 [fix](Nereids)memo copy in cannot rewrite current plan with its child (#11717)
When we do write current plan with its child. Currently, nereids memo do nothing indeed.
This PR fix this situation by add a predicate in rewrite that only replaced target group and set newGroupExpressionGenerated to false when target is null or target is same with existed group expression's group.

here we need to handle one situation that original target is not the same with
existedGroupExpression.getOwnerGroup(). In this case, if we change target to
existedGroupExpression.getOwnerGroup(), we could not rewrite plan as we expected and the plan
will not be changed anymore.
Think below example:
We have a plan like this:
```
Original (Group 2 is root):
Group2: Project(outside)
Group1: |---Project(inside)
Group0:     |---UnboundRelation

and we want to rewrite group 2 by Project(inside, GroupPlan(group 0))

After rewriting we should get (Group 2 is root):
Group2: Project(inside)
Group0: |---UnboundRelation
Group1: Project(inside)
```

After rewriting, Group 1's GroupExpression is not in GroupExpressionsMap anymore and Group 1 is unreachable.
Merge Group 1 into Group 2 is better, but in consideration of there is others way to let a Group take into
unreachable. There's no need to complicate to add a merge step. Instead, we need to have a clear step to
remove unreachable groups and GroupExpressions after rewrite.
2022-08-12 16:20:46 +08:00
f30553e0fe [tools](mysql2doris)add mysql to doris documentation #11726 2022-08-12 15:44:35 +08:00
ec4347ad39 [enhancement](Nereids) support StatementContext, SET_VAR, and Plan pre/post processor (#11654)
1. add StatementContext, and PlannerContext is renamed to CascadsContext. CascadsContext belong to a StatementContext, and StatementContext belong to a ConnectionContext, and the lifecycle increases in turn. StatementContext can wrap some statement's lifecycle-related state, such as ExpressionId, TableLock. MemoTestUtil can simplify create a CascadesContext and Memo for test.
2. add PlanPreprocessor to process parsed logical plan before copy into memo. and add a PlanPostprocessor to process physical plan after copy out from memo.
3. utilize PlanPreprocessor to process SET_VAR hint, the class is EliminateLogicalSelectHint
4. pass the limit clause in regression test case, in set_var.groovy
2022-08-12 14:49:11 +08:00
e353be7dcb [Bug](date function) Return null if date format is invalid (#11720) 2022-08-12 14:07:55 +08:00
a912910d4b [fix](thirdparty) Fix the errors while building brpc (#11714) 2022-08-12 13:59:44 +08:00
a3ae1494ef [Enhancement](admin show replica distribution) size percent should be 0.00% when size is zero #11711
Co-authored-by: wuhangze <wuhangze@jd.com>
2022-08-12 13:58:56 +08:00
e5c2bb9699 [fix](remote)Fix bug for Cache Reader (#11629) 2022-08-12 13:40:32 +08:00
800bc100af [feature-wip](unique-key-merge-on-write) show enable_unique_key_merge_on_write property when get ddl (#11664)
* [feature-wip](unique-key-merge-on-write) show enable_unique_key_merge_on_write property when get ddl

* update
2022-08-12 12:14:04 +08:00
15abafee71 [Bug](runtime filters) support late-arrival runtime filters (#11599) 2022-08-12 11:55:15 +08:00
0ab43c51e8 [Feature](unique-key-merge-on-write) some fix on delete bitmap usage (#11623) 2022-08-12 11:54:31 +08:00
7d97aa194b [feature-wip](datev2) Support to use datev2 as partition column (#11618) 2022-08-12 11:54:01 +08:00
b36680796f [optimization] (be-log) modify the backendservice log (#11689)
Co-authored-by: hucheng01 <hucheng01@baidu.com>
2022-08-12 11:52:24 +08:00
6c6328fc6d [fix](join)fix outer join bug when a subquery as nullable side #11700 2022-08-12 11:50:15 +08:00
32e451e6ad [minor](recycle) add log to observe bug (#11687) 2022-08-12 11:40:20 +08:00
4047c3577d [enhancement](Status) Optimize Status implementation 2022-08-12 11:39:35 +08:00
9b9ed1aef1 [data lake](arrow scanner)Fix file arrow scanner column index out of range core. (#11691) 2022-08-12 11:34:29 +08:00
9950501fdf [fix](profile) close eof scanner before transfer done (#11705)
We should close eof scanners before transfer done, otherwise,
they are closed until scannode is closed. Because plan is closed
after the plan is finished, so query profile would leak stats from
scanners closed by scannode::close. e.g. SegmentTotalNum in profile
is less.
2022-08-12 11:28:43 +08:00
4c8cc7f03e [fix](storage)fix column dict incorrect result (#11694)
Co-authored-by: Wang Bo <wangbo36@meituan.com>
2022-08-12 11:05:57 +08:00
Pxl
f5fe622a1b [Bug](materialized view) fix create materialized view fail
1. remove referenced_column(seems unused now).
2. fix mv slot ref id wrong.
3. add type check for hll_hash.
4. enable non-nullable column change to nullable column.
2022-08-12 09:49:16 +08:00
0f555e90cb [deps](brpc) Upgrade Brpc to 1.2.0 fix _dl_sym undefined reference on new verison of glibc (#11688) 2022-08-12 09:07:57 +08:00
5d66839035 [feature-wip](unique-key-merge-on-write) push down runtime filter on unique key with merge on write table (#11695) 2022-08-11 22:50:13 +08:00
2d5ffac590 [fix](optimization) InferFiltersRule bug: a self inner join on a view, which contains where clause, will cause mis-inference. (#11566) 2022-08-11 17:13:26 +08:00
9214346603 [Bug] fix cancel fragment bug (#11683)
Co-authored-by: chenjie <chenjie@cecdat.com>
2022-08-11 16:48:18 +08:00
a72e20da69 [chore](check) update sonarcloud workflow files (#11674)
update sonarcloud workflow files try to trigger workflow after merge
2022-08-11 16:22:02 +08:00
aa24c8f973 [Feature](multi-catalog) Support refresh catalog metadata (#11656) 2022-08-11 15:14:05 +08:00
ea57bf6370 [refactor](delete predicate) Unify delete to segmentiterator (#11650)
* remove seek columns and unify delete columns in rowset reader


Co-authored-by: yiguolei <yiguolei@gmail.com>
2022-08-11 15:12:43 +08:00
7e828ad85b [Enhancement](profile format) Print fragment and instance in a better format (#11671) 2022-08-11 14:05:41 +08:00
180cc35815 [Feature](nereids) support sub-query and alias in FromClause (#11035)
Support sub-query and alias for TPC-H,for example:
select * from (select * from (T1) A join T2 as B on T1.id = T2.id) T;
2022-08-11 12:42:19 +08:00
d831322806 [refactor](planner): make Table abstract. (#11642) 2022-08-11 12:07:25 +08:00
2068bf2dea [Refactor](predicate) Use primitive type as template argument for predicate (#11647) 2022-08-11 12:06:44 +08:00
56ce8c0c5c [feature](http) add api for showing current queries and kill query (#11657) 2022-08-11 10:32:46 +08:00
27f652aaff [extension](feature)Mysql database import doris by external tables (#10905) 2022-08-11 10:18:45 +08:00
8f5aed27ec [feature-wip](parquet-reader)read and decode parquet physical type (#11637)
# Proposed changes

Read and decode parquet physical type.
1. The encoding type of boolean is bit-packing, this PR introduces the implementation of bit-packing from Impala
2. Create a parquet including all the primitive types supported by hive

## Remaining Problems
1. At present, only physical types are decoded, and there is no corresponding and conversion methods with doris logical.
2. No parsing and processing Decimal type / Timestamp / Date.
3. Int_8 / Int_16 is stored as Int_32. How to resolve these types.
2022-08-11 10:17:32 +08:00
7fb0913d35 Usage example of modifying the "storage_root_path" parameter (#11659)
Usage example of modifying the "storage_root_path" parameter
2022-08-11 09:57:50 +08:00
200b558156 [typo](doc)spark load uses kerberos authentication method (#11662)
spark load uses kerberos authentication method
2022-08-11 09:57:26 +08:00
04d26ddf22 [feature-wip](multi-catalog)Support use catalog.db and show databases from catalog stmt (#11338)
Support use catalog.db and show databases from catalog stmt.
2022-08-11 09:50:32 +08:00
5d99abb3ec MOD: label with cte doc (#11661)
insert label with cte doc
2022-08-11 09:45:59 +08:00
02a3f21b65 [fix](analyzer) InferFilterRule bug: equations in on clause of outer/anti join are not inferable. (#11515) 2022-08-11 09:36:43 +08:00
d60afe82a4 FIX: doc error (#11660)
es doc fix
2022-08-11 09:20:06 +08:00