Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(optimizer): turn on logical rewrite for stream #1231

Merged
merged 3 commits into from
Mar 24, 2022

Conversation

st1page
Copy link
Contributor

@st1page st1page commented Mar 24, 2022

What's changed and what's your intention?

due to mistake when resolve conflict, #1185 lose this part.
PLEASE DO NOT LEAVE THIS EMPTY !!!

Please explain IN DETAIL what the changes are in this PR and why they are needed:

  • Summarize your change (mandatory)
  • How does this PR work? Need a brief introduction for the changed logic (optional)
  • Describe clearly one logical change and avoid lazy messages (optional)
  • Describe any limitations of the current code (optional)

Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests

Refer to a related PR or issue link (optional)

@st1page st1page requested review from skyzh and fuyufjh March 24, 2022 05:56
@st1page st1page requested a review from likg227 March 24, 2022 05:58
Copy link
Member

@fuyufjh fuyufjh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@st1page st1page enabled auto-merge (squash) March 24, 2022 06:02
@@ -64,8 +60,8 @@
BatchProject { exprs: [Case(($0 = 1:Int32), 1:Int32::Decimal, ($0 = 2:Int32), 2:Int32::Decimal, Normalized(0.0):Decimal)], expr_alias: [ ] }
BatchScan { table: t, columns: [v1] }
stream_plan: |
StreamMaterialize { table_id: 0, column_order: [], column_id: [#0], pk_indices: [] }
StreamProject { exprs: [Case(($0 = 1:Int32), 1:Int32::Decimal, ($0 = 2:Int32), 2:Int32::Decimal, Normalized(0.0):Decimal)], expr_alias: [ ] }
StreamMaterialize { table_id: 0, column_order: [$1 ASC], column_id: [#0], pk_indices: [1] }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe out of the scope of this PR. Is pk_indices redundant with column_order? In another words, is it guaranteed that column_order must contain all PK columns with same order?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes... we can refactor it later

Copy link
Member

@fuyufjh fuyufjh Mar 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@st1page st1page merged commit c8de95d into main Mar 24, 2022
@st1page st1page deleted the sts/optimizer_turn_on_logical_rewrite_for_stream branch March 24, 2022 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants