Results 45 issues of xudong.w

**Is your feature request related to a problem or challenge? Please describe what you are trying to do.** Migrate the cross join -> inner join optimization from the planner to...

enhancement
good first issue
optimizer

**Summary** Currently, `20_0001_planner_v2` contains all kinds of tests, I think it's better to classify them. I have picked join-related tests from `20_0001_planner_v2` to `join.test` in https://github.com/datafuselabs/databend/pull/7086 cc @ZeaLoVe

C-testing

### Search before asking - [X] I had searched in the [issues](https://github.com/datafuselabs/databend/issues) and found no similar issues. ### Version main ### What's Wrong? ```sql select * from (SELECT number AS...

C-bug
A-planner

**Summary** Such as ```sql explain (fragments, pipeline) select * from t; explain (syntax, fragments) select * from t; ```

C-feature
A-planner

**Summary** Need RFC. Currently, databend processes CTE by inlining all references to CTEs in the query tree. This causes the CTE to execute multiple, but further optimization can be done...

C-feature
A-planner

**Summary** https://www.postgresql.org/docs/current/queries-union.html (We have supported `intersect` and `except` set operator.) `Union` also is used in recursive CTE.

C-feature
A-planner

**Summary** Small changes may require modification of multiple logic tests results Manually changing them one by one is too painful :(

C-feature

**Summary** TPCH q4 will be converted to semi join ```sql MySQL [tpch]> explain -> select -> o_orderpriority, -> count(*) as order_count -> from -> orders -> where -> o_orderdate >=...

C-feature