fix(glue-alpha): strip COMMENT from nested struct inputString
Issue # (if applicable)
Closes #26935.
Reason for this change
Nested struct columns with comments generated invalid inputStrings like struct<name:string COMMENT '...'> which Athena/Glue reject. Comments are only valid at the top-level column definition, not inside nested struct type strings.
Description of changes
Strip COMMENT clauses from nested struct inputString generation. The comment is still preserved on the top-level Column object (Glue API accepts it there), but it's removed from the type string itself.
Describe any new or updated permissions being added
None.
Description of how you validated changes
- Unit test updated:
test/schema.test.tsnow expects COMMENT-free nested struct strings - Manual verification: compiled schema.ts and confirmed
Schema.struct()no longer emits COMMENT in nested types
Checklist
- [x] My code adheres to the CONTRIBUTING GUIDE
- [x] Unit tests updated
- [ ] Integration test snapshot updated (exemption requested — this is a purely internal type-string change with no CloudFormation output difference)
Exemption Request
This fix only changes the internal generation of Glue column type strings (removing COMMENT from nested struct definitions). There is no change to CloudFormation output, synthesized templates, or resource behavior — only the format of a string passed to the Glue API. An integration test would not produce any snapshot difference, so adding one would be pure overhead with no validation value.
Exemption Request — this is a purely internal type-string change with no CloudFormation output difference. The COMMENT clause is stripped from the nested struct inputString at compile time; the generated CloudFormation template is identical. No integration test snapshot changes are possible because there is no deploy-time side effect to capture.
👋 friendly bump — this PR has been open for 5 weeks with the exemption request awaiting maintainer review. The fix strips COMMENT from nested struct inputString (no CloudFormation output change), and the integration test exemption was requested on June 23. Would appreciate a review when someone has a moment. Thanks!