-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Always add columns in the Derived
operator
#12634
Always add columns in the Derived
operator
#12634
Conversation
Signed-off-by: Florent Poinsard <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Signed-off-by: Florent Poinsard <[email protected]>
@@ -145,9 +145,9 @@ func (d *Derived) AddColumn(ctx *plancontext.PlanningContext, expr sqlparser.Exp | |||
var pos int | |||
d.ColumnsOffset, pos = addToIntSlice(d.ColumnsOffset, i) | |||
|
|||
d.Columns = append(d.Columns, col) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a comment here will be helpful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a linked bug, but otherwise LGTM
…in-derived-operator Signed-off-by: Andres Taylor <[email protected]>
* Always add column in the derived operator Signed-off-by: Florent Poinsard <[email protected]> * Fix plan tests expectations Signed-off-by: Florent Poinsard <[email protected]> --------- Signed-off-by: Florent Poinsard <[email protected]> Signed-off-by: Andres Taylor <[email protected]> Co-authored-by: Andres Taylor <[email protected]>
* Always add column in the derived operator * Fix plan tests expectations --------- Signed-off-by: Florent Poinsard <[email protected]> Signed-off-by: Andres Taylor <[email protected]> Co-authored-by: Andres Taylor <[email protected]>
Description
This Pull Request fix an important bug around the derived table operator. We were not adding the columns always.
FIxes #12649
Checklist