-
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
service/glue: Breaking Changes Between v1.22.1 and v1.22.2 #2741
Comments
Strangely enough, the glue model JSON for the aws-sdk-go/models/apis/glue/2017-03-31/api-2.json Lines 5532 to 5554 in 62608c7
And locally regenerating results in no changes:
Diving deeper, the generated type seems to be matching aws-sdk-go/models/apis/glue/2017-03-31/api-2.json Lines 4280 to 4292 in 62608c7
Which was newly introduced to the model in v1.22.2: https://github.com/aws/aws-sdk-go/pull/2739/files#diff-90a2330ee3e649e9ac6ecb993849bb0fR4280 The service generation seems to be collapsing the |
Potential fix submitted: #2742 |
Fixes the SDK's code generation incorrectly renaming types and operations. The code generation would incorrectly rename an API type by removing the service's name from the type's name. This was done without checking for if a type with the new name already existed. Causing the SDK to replace the existing type with the renamed one. Removes the SDK's stutter renaming behavior, while maintaining already renamed types. Squash types, are are now generated. * AWS Glue * Previously squashed "Table" is generated as "TableData" * GetTableOutput.Table type is fixed to be "TableData" * GetTableOutput.TableList is fixed to be "[]TableData" * TableVersion.Table type is fixed to be "Table" * AWS IoT Events * Previously squashed "Action" is generated as "ActionData" * Event.Actions type is fixed to be "[]ActionData" Fix aws#2741 Related to aws#2742
Thanks for reporting this bug @bflad, and PR. While investigating this solution, I needed to create PR #2747 to prevent this issue from happening in the future by disabling the renaming for all new API updates. The PR adds the previously squashed types, and updates the members that should of referred to those squashed types, (e.g. "ActionData" and TableData) All existing types, that previously worked, will continue to work with the same name they had before, (e,g IotEventsAction is still Action, and GlueTable is still Table). |
Fixes the SDK's code generation incorrectly renaming types and operations. The code generation would incorrectly rename an API type by removing the service's name from the type's name. This was done without checking for if a type with the new name already existed. Causing the SDK to replace the existing type with the renamed one. Removes the SDK's stutter renaming behavior, while maintaining already renamed types. Squash types, are are now generated. * AWS Glue * Previously squashed "Table" is generated as "TableData" * GetTableOutput.Table type is fixed to be "TableData" * GetTableOutput.TableList is fixed to be "[]TableData" * TableVersion.Table type is fixed to be "TableData" * AWS IoT Events * Previously squashed "Action" is generated as "ActionData" * Event.Actions type is fixed to be "[]ActionData" Fix aws#2741 Related to aws#2742
Fixes the SDK's code generation incorrectly renaming types and operations. The code generation would incorrectly rename an API type by removing the service's name from the type's name. This was done without checking for if a type with the new name already existed. Causing the SDK to replace the existing type with the renamed one. Removes the SDK's stutter renaming behavior, while maintaining already renamed types. deleted types, are are now generated. * AWS Glue * Previously deleted "Table" is generated as "TableData" * GetTableOutput.Table type is fixed to be "TableData" * GetTableOutput.TableList is fixed to be "[]TableData" * TableVersion.Table type is fixed to be "TableData" * AWS IoT Events * Previously deleted "Action" is generated as "ActionData" * Event.Actions type is fixed to be "[]ActionData" Fix aws#2741 Related to aws#2742
…2747) Fixes the SDK's code generation incorrectly renaming types and operations. The code generation would incorrectly rename an API type by removing the service's name from the type's name. This was done without checking for if a type with the new name already existed. Causing the SDK to replace the existing type with the renamed one. Removes the SDK's stutter renaming behavior, while maintaining already renamed types. deleted types, are are now generated. * AWS Glue * Previously deleted "Table" is generated as "TableData" * GetTableOutput.Table type is fixed to be "TableData" * GetTableOutput.TableList is fixed to be "[]TableData" * TableVersion.Table type is fixed to be "TableData" * AWS IoT Events * Previously deleted "Action" is generated as "ActionData" * Event.Actions type is fixed to be "[]ActionData" Fix #2741 Related to #2742
Thanks for creating this issue @bflad We've merged in the fix for this bug correcting the SDK's behavior. This will be included in the SDK's next release. |
Please fill out the sections below to help us address your issue.
Version of AWS SDK for Go?
Version of Go (
go version
)?What issue did you see?
The
service/glue
Table
type introduced breaking changes between v1.22.1 and v1.22.2 of the AWS Go SDK:v1.21.1 service/glue/api.go:
v1.21.2 service/glue/api.go:
Steps to reproduce
Using https://github.com/terraform-providers/terraform-provider-aws/ as the test project:
The text was updated successfully, but these errors were encountered: