-
Notifications
You must be signed in to change notification settings - Fork 4k
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(redshift): columns require an id attribute (under feature flag) #24272
Conversation
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 pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
✅ Updated pull request passes all PRLinter validations. Dissmissing previous PRLinter review.
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.
Even though this is module isn't stable, I think we need a feature flag on this. The change itself will cause a replacement and I don't want customers to unintentionally lose data due to a change that is meant to prevent that very thing.
@TheRealAmazonKendra I don't think it will, since I perform a check to see if the column => oldColumn.name !== column.name now becomes column => oldColumn.id ? oldColumn.id !== column.id : oldColumn.name !== column.name This should ensure backwards compatibility, unless I am mistaken. |
@Rizxcviii so that part in the custom resource logic seems to be non-breaking but the new |
@MrArnoldPalmer Or are you referring to the |
Actually, now that I'm thinking about it, you are right. If within that initial deployment, the user assumes that the |
Great, thank you! |
Pull request has been modified.
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.
Just one minor comment, but this looks very good!
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.
Just a test change.
addition: adding feature flag unit test modification: integ test more focused
Pull request has been modified.
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! @comcalvi added dnm for you to check out again if needed.
Pull request has been modified.
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! Nice work!
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
…ws#24272) Adds an `id` attribute to retain tables on changing of the column name. This will essentially fire an `ALTER` statement to rename the column, whilst persisting the id, so columns cannot be dropped. Closes aws#24234. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Adds an
id
attribute to retain tables on changing of the column name. This will essentially fire anALTER
statement to rename the column, whilst persisting the id, so columns cannot be dropped.Closes #24234.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license