doris icon indicating copy to clipboard operation
doris copied to clipboard

[feature](nereids) Convert subqueries into algebraic expressions and …

Open zhengshiJ opened this issue 2 years ago • 2 comments

…put them into the query tree

Proposed changes

Issue Number:

Problem summary

1.Originally, each expression would generate a scope, but now each node will generate a scope, reducing the repeated generation of scopes. 2.Added convert subqueries to algebraic expressions

Checklist(Required)

  1. Does it affect the original behavior:
    • [ ] Yes
    • [x] No
    • [ ] I don't know
  2. Has unit tests been added:
    • [x] Yes
    • [ ] No
    • [ ] No Need
  3. Has document been added or modified:
    • [ ] Yes
    • [x] No
    • [ ] No Need
  4. Does it need to update dependencies:
    • [ ] Yes
    • [x] No
  5. Are there any changes that cannot be rolled back:
    • [ ] Yes (If Yes, please explain WHY)
    • [x] No

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

zhengshiJ avatar Aug 03 '22 03:08 zhengshiJ

Please rebase master to re-run P0 test

jacktengg avatar Aug 03 '22 08:08 jacktengg

I suggest first supporting analyzing and unnesting one type of subquery, e.g., converting InSubuqery to joins. Thus we could have a unit test to review the framework and main steps of unnesting subqueries.

wangshuo128 avatar Aug 04 '22 03:08 wangshuo128