-
Notifications
You must be signed in to change notification settings - Fork 647
fix: print AlterSinkOperation::SetSinkProps
correctly
#21790
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
Conversation
…eses for changed properties
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.
Pull Request Overview
This PR fixes the output formatting of AlterSinkOperation::SetSinkProps so that sink properties are printed using a comma-separated format. It also updates the corresponding test data to reflect the new output string.
- Replaced debug formatting with a call to display_comma_separated for sink properties.
- Updated the testdata YAML file to match the new printed output format.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
src/sqlparser/tests/testdata/alter.yaml | Updated formatted_sql to reflect the corrected output format for sink properties |
src/sqlparser/src/ast/ddl.rs | Changed the formatter from debug printing to using display_comma_separated for better output control |
Comments suppressed due to low confidence (1)
src/sqlparser/src/ast/ddl.rs:481
- Consider verifying that display_comma_separated handles edge cases such as an empty changed_props list to ensure consistent formatting.
write!(f, "CONNECTOR WITH ({})", display_comma_separated(changed_props))
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…gwavelabs/risingwave into tab/fix-print-setsinkprops
Co-authored-by: tab <tabversion@bupt.icu> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
✅ Cherry-pick PRs (or issues if encountered conflicts) have been created successfully to all target branches. |
…eses for changed properties
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
as title
introduced in #20691
What's changed and what's your intention?
Checklist
Documentation
Release note