-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
aws-redshift: allow changing of table column names #24234
Comments
Thank you. Is this related to #20495 ? I am making it as p2 and any PR submission would be appreciated. |
Potentially, if we are able to create a solution that allows |
…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 #24234. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
…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*
Describe the feature
Currently, the construct is based around the name of a table column being fixed, however redshift enables the user to change the name of the table columns, if needed.
Use Case
If we have an existing column name that is not distinctive enough, further columns added in the future might "clash" with the "meaning" behind the original table column.
Proposed Solution
Possibly by implementing an extra
id
attribute to the existingColumn
construct. However this would require a possible refactor to the checking conditions that already exist, due to thename
attribute being used currently. This is definitely NOT a critical change, and infra developers could currently alleviate this problem by using the AWS console, and reworking their tables from there.However, if this is implementable by just a simple addition of an
id
attribute, then this would be a good step in the right direction I believe for the Redshift Construct.Other Information
No response
Acknowledgements
CDK version used
2.56.0
Environment details (OS name and version, etc.)
Amazon Linux 2
The text was updated successfully, but these errors were encountered: