Commit Graph

14094 Commits

Author SHA1 Message Date
Pxl
d41e839ea0 [Chore](sink) add index number check for table sink (#25461)
add index number check for table sink
2023-10-16 17:03:26 +08:00
9deda929b9 [refactor](stats) Use id instead name in analysis info (#25213) 2023-10-16 03:49:53 -05:00
4c42f3b783 [Improvement](hive-udf)(doc) minimize hive-udf and add some docs. (#24786) 2023-10-16 16:47:21 +08:00
5eff36417a [typo](docs) Fix some ambiguous descriptions (#23912) 2023-10-16 16:44:11 +08:00
b2e3ecb81d [opt](load)change load_to_single_tablet tablet search algorithm from random to round-robin (#25256)
At present, `load_to_singlt_tablet` import implementation refers to simple random number remainder, which cannot achieve true averaging. This will lead to uneven disk IO and uneven use of cluster resources. To solve this problem, we are preparing to implement round-robin for each partition tablet imported each time, in order to achieve average load to each tablet.

When generating the load query plan, the tablet index record currently imported is passed to BE.
Add a deamon task in FE to regularly clean up the `loadTabletRecordMap`. The map will get the bucket_number of the partition and update the `load_tablet_index` when `getCurrentLoadTabletIndex`.
2023-10-16 16:43:25 +08:00
b83e412623 [fix](hive-udf) delete Logger to avoid Kryo serialize problem. (#25312) 2023-10-16 16:10:06 +08:00
e8431e1a97 [fix](planner)should not add TupleIsNullPredicate for inlineview plan (#25338) 2023-10-16 15:24:13 +08:00
8e9e1b1bfd [fix](planner) Disable infer expr column name when query on old optimizer (#25317)
Disable infer expr column name when query on old optimizer.
This bug is be brought in #24990

if your query SQL is
select id, name, sum(target) FROM db_test.table_test2 group by id, name;
the result column name when query is as following:
|id|name |sum(cast(target as DOUBLE))|

when you create view as following:
CREATE VIEW v1 as select id, name, sum(target) FROM db_test.table_test2 group by id, name;
then query the view v1, the result is as following:
|id|name |__sum_2|
2023-10-16 02:08:52 -05:00
1a27ac8d56 [opt] use correct column label when execute query in FE (#25372)
SET @a = '4';
SELECT @a;

previous:
+-----+
| '4' |
+-----+
| 4   |
+-----+

current:
+----+
| @a |
+----+
| 4  |
+----+
2023-10-16 02:03:33 -05:00
Pxl
292ccaeda8 insert default when json array parse failed (#25447)
insert default when json array parse failed
2023-10-16 14:51:26 +08:00
04e5fb3809 [fix](regression test) fix mysql tuple convert test result not ordered #25455 2023-10-16 14:32:51 +08:00
0585beee02 [typo](docs) Modify parameter description (#23782) 2023-10-16 01:29:00 -05:00
0aa50fb256 [fix](nereids)fix regression case: eliminate_outer_join (#25208) 2023-10-16 14:08:36 +08:00
f698f205d5 [Fix](merge-on-write) throw exception when the user don't specify the insert columns in insert statement for partial update (#25437) 2023-10-16 14:05:06 +08:00
e94fbe169e [Enhance](regression) add hms catalog broker scan case (#25453) 2023-10-16 12:35:46 +08:00
29d4e8ee90 [Fix](Nereids) fix test leading change disable join reorder parameter (#23657)
Problem:
when running pipeline, we get randomly failed of test_leading
Reason:
physical distribute was generated and choosed to be the best plan because we can not get any statistic information of empty table. So we would get some unexpect result because we can not expect the order in memo
Solved:
Add statistic of columns used in test_leading, try repeatly in pipeline
2023-10-15 22:59:45 -05:00
Pxl
d00d029ffb Separate fixed key hash map context creator (#25438)
Separate fixed key hash map context creator
2023-10-16 11:20:30 +08:00
c482c22a74 [case](regresscases) add regress cases for nested type nested type with csv format (#25355)
this pr
1.  fix use podarray push_back() with back() will make heap_use_after_free when podarray is reach capacity which would may make heap free 
2. add cases for csv format for nested types. and csv file has two define which are without quote or just like json text
2023-10-16 11:13:44 +08:00
934d82816c [fix](Nereids) add int type alias 'integer' (#25376) 2023-10-15 22:12:44 -05:00
4c57c31c5c [fix](Nereids) count should not accept complex and json type (#25354) 2023-10-15 22:08:35 -05:00
dfc7d04626 [fix](functions) add quantile_state_empty function signature (#25306) 2023-10-16 11:05:48 +08:00
9649e09aaa [feature](function) support bitmap type in min/max_by agg function (#25430)
support bitmap type in min/max_by agg function
2023-10-16 11:05:32 +08:00
97c0af1a80 [fix](build) aarch64 compilation fix # (#25443)
Issue: #25442

Compilation to include execinfo when building on aarch64
2023-10-16 09:53:50 +08:00
08f305dd79 [chore](build) Fix compilation errors reported by GCC-13 (#25439)
1. Fix lots of compilation errors reported by GCC-13.
2. Fix the workflow BE UT (macOS).
2023-10-15 07:57:36 -05:00
7ea456ef91 [fix](insert) make group commit wal_manager exit elegantly (#25250) 2023-10-14 23:14:06 +08:00
471cf2c48b [improvement](auth) support show view priv (#25370)
Issue Number: close #xxx

current ,if user has select_priv or load_priv,he can show create table view_name,
but this is not safe,so add show_view_priv for show create table view_name

mysql SHOW VIEW description: https://dev.mysql.com/doc/refman/8.0/en/privileges-provided.html#priv_show-view
2023-10-14 22:37:51 +08:00
ed3e8f9355 Fix a naming conflict in ccr regression test (#25436) 2023-10-14 22:28:59 +08:00
03316e2355 [fix](fe rest api)api gets execution plan, table name case problem (#25112)
The user has configured the parameter lower_case_table_names, which ignores the case of the table name. When executed on the SQL client, the table name can be queried in both case.
But when using Connector to read doris data, the table names must be in the same case, otherwise an error will be reported.
2023-10-14 19:48:24 +08:00
e5ef0aa6d4 [refactor](mysql result format) use new serde framework to tuple convert (#25006) 2023-10-14 19:46:42 +08:00
b946521a56 [enhancement](regression-test) add single stream multi table case (#25360) 2023-10-14 10:59:50 +08:00
de03c152ce [fix](thrift)cancel thrift msg max size limit (#25194)
On Thrift 0.14.0+, need use TConfiguration to raise the max message size.
see https://github.com/apache/arrow/pull/11123/files
2023-10-13 20:21:36 +08:00
6bb0c918eb [fix](statistics) use replication_num as replica num (#25325) 2023-10-13 20:14:25 +08:00
3e83fb8729 [enhancement](compaction) record base compaction schedule time and status (#25283) 2023-10-13 19:51:55 +08:00
9f67bcf380 [chore](format) fix tablet_meta.cpp (#25410)
fix format error introduced by #25124
The clang format check had a bug before, so PR 25124 can pass the check at that time.
2023-10-13 17:58:54 +08:00
b56eecb341 update secure flag to false (#25412)
update secure flag to false
2023-10-13 17:00:58 +08:00
789210bc38 [chore](format) Refactor BaseTablet _full_name by using fmt replacing stringstream (#25400)
Signed-off-by: Jack Drogon <jack.xsuperman@gmail.com>
2023-10-13 03:59:03 -05:00
ac8fbdd53c [pipelineX](fix) Fix use-after-free in shuffling (#25409) 2023-10-13 16:57:34 +08:00
37dbda6209 [pipelineX](refactor) Use class template to simplify join (#25369) 2023-10-13 16:51:55 +08:00
Pxl
f4e2eb6564 remove unused code and adjust clang-tidy checks (#25405)
remove unused code and adjust clang-tidy checks
2023-10-13 16:27:37 +08:00
1a25bb65b0 [fix](case) change dynamic_partition.time_unit from day to month to avoid the error that the intert data not in partition (#25361)
[fix](case) change dynamic_partition.time_unit from day to month to avoid the error that the intert data not in partition
Co-authored-by: stephen <hello-stephen@qq.com>
2023-10-13 16:02:17 +08:00
2ec53ff60e [fix](multi-table) fix single stream multi table load can not finish (#25379) 2023-10-13 15:47:16 +08:00
283bd59eba [improvement](scanner) Remove the predicate that is always true for the segment (#25366)
By utilizing the zonemap index of the segment, we can ascertain if a predicate is always true. For example, if the segment’s maximum value is 100 and the predicate is col < 101, then this predicate is always true for this segment.
2023-10-13 15:25:38 +08:00
cee7a6889f [test](fix) case bug (#25363) 2023-10-13 15:25:15 +08:00
9cc0e9526a [enhancement](merge-on-write) consider version count on size-based cu compaction policy (#25352) 2023-10-13 14:52:21 +08:00
96f31ae9a7 [Docs](merge-on-write) Add more docs for partial update using native insert statement (#25356) 2023-10-13 14:48:51 +08:00
6298f90347 [ecosystem](doc) mysql synchronization example add mysql-conf port (#24666) 2023-10-13 01:36:26 -05:00
522faa8cd2 [fix](jni) the offset in map type is int64 (#25394)
The offset in map type column is int64, but #24810 has put as int32, causing error like:
2023-10-13 14:23:17 +08:00
fc40788018 [enhancement](merge-on-write) refine tablet meta_lock usage and add some trace log (#25124) 2023-10-13 14:22:07 +08:00
6757d2f361 Revert "[Enhancement](show-backends-disks) Add show backends disks (#24229)" (#25389)
This reverts commit 21223e65c59c23cfcb9e8ab610ea321168bcb75a.
2023-10-13 14:08:45 +08:00
6f9a084d99 [Fix](Outfile) Use data_type_serde to export data to parquet file format (#24998) 2023-10-13 13:58:34 +08:00