d37cf0a41b
[regression-test](p0) add p0 test cases ( #11624 )
...
Add p0 test cases, including:
aggregate
join
union
order by
group by
keyword
arithmetic operators
logical operators
case function
coalesce
between
in
like
limit
where
regexp
window function
runtime filter
schema change
2022-08-15 23:12:07 +08:00
0f75bd0e38
[fix](delete) fix query result error after delete ( #11754 )
...
convert dictionary code for delete predicates.
2022-08-15 17:52:03 +08:00
910d51c76f
[fix](update) Fix where clause is not reanalyzed after rewrite ( #11723 )
2022-08-15 13:24:57 +08:00
8c8f48c4c2
[feature-wip](array-type) add the array_join function ( #11406 )
...
this pr is used to add the array_join function.
Co-authored-by: hucheng01 <hucheng01@baidu.com >
2022-08-15 11:43:17 +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
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
6c6328fc6d
[fix](join)fix outer join bug when a subquery as nullable side #11700
2022-08-12 11:50:15 +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
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
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
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
c8418d13b5
[improvement](config)Use session variable to replace configuration for 'enable_function_pushdown' ( #11641 )
2022-08-10 19:25:02 +08:00
01e4522612
[fix]collect_list/collect_set without GROUP BY for NOT NULL column ( #11529 )
...
Co-authored-by: cambyzju <zhuxiaoli01@baidu.com >
2022-08-09 20:49:37 +08:00
df47b6941d
[feature-wip](array-type) support the array type in reverse function ( #11213 )
...
Co-authored-by: hucheng01 <hucheng01@baidu.com >
2022-08-09 20:49:09 +08:00
b9f7f63c81
[Fix](planner) Fix wrong planner with count(*) optmizer for cross join optimization ( #11569 )
2022-08-09 09:01:25 +08:00
7c950c7cd5
[feature](Nereids) support cross join in Nereids ( #11502 )
...
support cross join in Nereids
1. add PhysicalNestedLoopJoin
2. Translate PhysicalNestedLoopJoin to CrossJoinNode in PhysicalPlanTranslator
2022-08-08 22:14:27 +08:00
1701ffa7c0
[fix](planner)push constant expr in predicate to outer join's other conjuncts by mistake ( #11527 )
...
constant expr in predicate should not be pushed to outer join's other conjuncts
2022-08-08 20:56:08 +08:00
647b6e843a
[feature](nereids)add InPredicate in expressions ( #11264 )
...
1. Add InPredicate expression parser and translator
2. Add regression-test for In predicate (in nereids_syntax)
3. Support NOT EqualTo and NOT InPredicate in ExpressionTranslator#visitNot()
2022-08-08 19:59:54 +08:00
9349746987
[Fix](stream-load-json) fix VJsonReader::_write_data_to_column invalid column type cast when meet null ( #11564 )
...
column_ptr will be a none nullable column pointer after `column_ptr = &nullable_column->get_nested_column()`
so we should not cast column_ptr to ColumnNullable any more
2022-08-08 15:57:39 +08:00
2cd3bf80dc
[bugfix](schema change)fix core dump on vectorized_alter_table ( #11538 )
2022-08-08 10:45:28 +08:00
ee4d9d4347
[improvement](test) group some cases and group a case to p0 if it is not grouped ( #11548 )
2022-08-06 15:12:08 +08:00
b5531c5caf
[BugFix](BE) fix condition index doesn't match ( #11474 )
...
* [BugFix](Be) fix condition index doesn't match
2022-08-05 07:57:18 +08:00
75fc830573
[Bug](date function) fix wrong year for format '%x' ( #11520 )
2022-08-05 06:22:22 +08:00
9078ab4d24
[feature](FE): add new property to control whether use light schema change or not ( #11169 )
2022-08-04 15:49:05 +08:00
ec3c911f97
[Feature][Materialized-View] support materialized view on vectorized engine ( #10792 )
2022-08-04 14:07:48 +08:00
8a09f0478f
[regressiontest](improvement)SQL query conditions, if the data type is expanded with single quotes, an error will occur case ( #11437 )
2022-08-04 11:28:12 +08:00
ce68d24e95
[Bug](function) fix current_date not equal to curdate ( #11463 )
...
* fix current_date not equal to curdate
2022-08-04 09:25:50 +08:00
33053ad1fe
[improvement](outfile) support multibyte separator in outfile clause ( #11487 )
2022-08-04 09:06:06 +08:00
4ba2422039
[improvement](fe) Remove constant keys in aggregation ( #11434 )
2022-08-03 19:43:35 +08:00
a47eff1e46
[enhancement](Nereids) support all join type in Nereids that could do join by HashJoinNode ( #11446 )
...
add and test join type:
1. inner join
2. left outer join
3. right outer join
4. left semi join
5. right semi join
6. left anti join
7. right anti join
2022-08-03 12:14:17 +08:00
30e7f76def
[regression](unique-key-merge)add tpch_sf1_p1 test ( #11442 )
2022-08-03 11:22:50 +08:00
4864a83f04
[regression](unique-key-merge-test) add ssb_sf1_p1 test ( #11447 )
2022-08-03 11:22:24 +08:00
de4466624d
[refactor](schema change)Remove delete from sc ( #11441 )
...
* not need call delete handler to filter rows since they are filtered in rowset reader
* need not call delete eval in schema change and remove related code
Co-authored-by: yiguolei <yiguolei@gmail.com >
2022-08-03 03:29:41 +08:00
e41bfd8149
[Bug] Update Stmt Fail use in predicate query ( #11414 )
...
Co-authored-by: lihaopeng <lihaopeng@baidu.com >
2022-08-02 15:14:36 +08:00
fcfc76f4a9
[Bug](date function) from_unixtime return wrong result ( #11410 )
...
* [Bug](date function) `from_unixtime` return wrong result
2022-08-02 14:23:54 +08:00
60b5ed16a8
[improvement](test) move correctness and account suites to p0 while tpcds_sf1 t0 p1 ( #11350 )
2022-08-02 11:23:01 +08:00
dddacd120d
[fix](planner) Fix inconsistent nullability between outputTuple and groupByExpr when executing agg query ( #11361 )
2022-08-01 22:57:51 +08:00
eb778da64a
Add ssb sf0.1 test under unique table with zstd ( #11348 )
...
Co-authored-by: smallhibiscus <844981280>
2022-08-01 17:04:55 +08:00
1cf57a985d
[fix] Fix the query result error caused by the grouping sets statemen… ( #11316 )
...
* [fix] Fix the query result error caused by the grouping sets statement grouping as an expression
2022-08-01 13:52:18 +08:00
52460af74b
[Bug][Vectorized] Support the .* in hyperscan to valid the % in SQL ( #11371 )
...
Co-authored-by: lihaopeng <lihaopeng@baidu.com >
2022-08-01 11:00:05 +08:00
547c18d28b
[feature](load) support CLEAN LABEL stmt ( #11362 )
2022-08-01 10:43:33 +08:00
61b157abe3
[bug](storage-scanner) fix infinite loop when reading wide table ( #11372 )
...
* fix infinite loop when reading wide table
When a wide table is read, the 1st batch would be exceed raw_bytes_threshold,
so Scanner should read at least 1 row.
Actually, we should adjust batch size automatically to reduce memoery usage.
2022-08-01 10:33:04 +08:00
532395c6a0
[Bug][Function] core dump on sum(distinct) ( #11308 )
...
* fix align size calculate for distinct combinator
2022-07-30 10:24:48 +08:00
9d9fcca40c
[regression-test](array)add test for array_slice ( #11329 )
2022-07-30 09:59:58 +08:00
c1fbee7fe1
[fix] the nullable info is lost in ifnull expr ( #11212 )
...
ifnull function has defect when processing nullable column or const column in some case
2022-07-29 21:33:58 +08:00
bac280e803
[Vectorized] Support both distinct and order by of group_concat ( #11278 )
...
Co-authored-by: lihaopeng <lihaopeng@baidu.com >
2022-07-29 09:11:34 +08:00
0b1d06bfd6
[Vectorized] Support order by aggregate function ( #11187 )
...
Co-authored-by: lihaopeng <lihaopeng@baidu.com >
2022-07-28 09:12:58 +08:00
5913c7c52c
[feature-wip](array-type) add function array_slice ( #11054 )
...
array_slice function returns a slice of the array.
2022-07-27 18:43:52 +08:00