-
Notifications
You must be signed in to change notification settings - Fork 585
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
fix: changelog does not support fully qualified path #18785
fix: changelog does not support fully qualified path #18785
Conversation
Close issue risingwavelabs#18747 by using ObjectName for table instead of Ident. Signed-off-by: yihong0618 <[email protected]>
Signed-off-by: yihong0618 <[email protected]>
Thank you! Call for reviewers @xiangjinwu @tabVersion @xxhZs |
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.
LGTM
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.
LGTM,Thanks
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.
LGTM
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.
There are 2 bugs but both of them are from the original implementation orthogonal to this PR. Will merge this first and fix separately.
Thank you for the contribution!
f, | ||
"{} AS changelog from {}", | ||
self.alias, | ||
obj_name.real_value() |
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.
obj_name.real_value() | |
obj_name |
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.
@@ -156,7 +156,7 @@ impl QueryRewriter<'_> { | |||
match &mut cte_table.cte_inner { | |||
risingwave_sqlparser::ast::CteInner::Query(query) => self.visit_query(query), | |||
risingwave_sqlparser::ast::CteInner::ChangeLog(from) => { | |||
*from = Ident::new_unchecked(self.to) | |||
*from = ObjectName(vec![Ident::new_unchecked(self.to)]) |
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.
The original version was wrong. I will fix it separately.
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.
73a4bb9
learned a lot, thanks |
Signed-off-by: yihong0618 <[email protected]>
Signed-off-by: yihong0618 <[email protected]>
Signed-off-by: yihong0618 <[email protected]>
…-2.1 (#19098) Signed-off-by: yihong0618 <[email protected]> Co-authored-by: yihong <[email protected]> Co-authored-by: xiangjinwu <[email protected]>
…-2.0 (#19096) Signed-off-by: yihong0618 <[email protected]> Co-authored-by: yihong <[email protected]> Co-authored-by: xiangjinwu <[email protected]>
Close issue #18747 by using ObjectName for table instead of Ident.
As the doc https://docs.risingwave.com/docs/current/sql-as-changelog/
from
case is the table name, I think its better and less effort changing for changing to solvethis problem.
Also change one test for this case.
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.