Skip to content

fix(glue-alpha): correct OutputFormat.AVRO/ORC type and tidy GA-hygiene items - #38593

Merged
mergify[bot] merged 3 commits into
mainfrom
otaviom/glue/ga-hygiene
Aug 18, 2026
Merged

mergify[bot] merged 3 commits into
mainfrom
otaviom/glue/ga-hygiene

Conversation

@otaviomacedo

@otaviomacedo otaviomacedo commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

OutputFormat.AVRO and OutputFormat.ORC were constructed as InputFormat instances — they compiled only because the two classes are structurally identical. They are now OutputFormat instances; the emitted Hadoop class-name strings are unchanged, so synthesized output is identical.

Also:

  • renderColumns typed as the malformed Array<Column | Column> -> Column[] in both S3Table and ExternalTable.
  • Database.locationUri is now readonly (it is assigned only at construction).

BREAKING CHANGE: this is a corrective breaking change. Apps that leaned on the bug, and did things like InputFormat x = OutputFormat.AVRO; will get a compilation error in other jsii languages. The intended usage, on the other hand, was broken before and works now.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

…ne items

`OutputFormat.AVRO` and `OutputFormat.ORC` were constructed as `InputFormat`
instances — they compiled only because the two classes are structurally
identical. They are now `OutputFormat` instances; the emitted Hadoop class-name
strings are unchanged, so synthesized output is identical.

Also:
- `renderColumns` typed as the malformed `Array<Column | Column>` -> `Column[]`
  in both `S3Table` and `ExternalTable`.
- `Database.locationUri` is now `readonly` (it is assigned only at construction).

Addresses the OutputFormat, malformed-column-array, and mutable-`locationUri`
findings from the aws-glue-alpha pre-GA API review.
@github-actions github-actions Bot added the p2 label Aug 18, 2026
@aws-cdk-automation
aws-cdk-automation requested a review from a team August 18, 2026 08:59
@mergify mergify Bot added the contribution/core This is a PR that came from AWS. label Aug 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ This pull request description does not follow the correct template structure.

PRs without a linked issue will receive lower priority for review and merging. Please update the description to follow the PR template and include a line like Closes #123 in the Issue section. If no existing issue matches your change, create one first.

@otaviomacedo otaviomacedo added the pr-linter/exempt-integ-test The PR linter will not require integ test changes label Aug 18, 2026

@aws-cdk-automation aws-cdk-automation left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This review is outdated)

…nces

Regression test for the type correction: these members were previously
`InputFormat` instances, which compiled in TypeScript (structural typing) but
was unusable in jsii's nominal languages where an `OutputFormat` is required.
`instanceof` distinguishes the two at runtime, so this fails on the pre-fix code.
@aws-cdk-automation
aws-cdk-automation dismissed their stale review August 18, 2026 09:42

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Aug 18, 2026
@alvazjor alvazjor self-assigned this Aug 18, 2026
@mergify

mergify Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

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).

@mergify

mergify Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-08-18 12:42 UTC · Rule: default-squash · triggered by rule automatic merge
  • ✅ Checks passed · in-place
  • ✅ Merged — 2026-08-18 13:20 UTC · at 48a0c9c07ca9be601a23dc86cbbfab1d78e980a7 · squash

This pull request spent 38 minutes 4 seconds in the queue, including 37 minutes 21 seconds running CI.

Required conditions to merge

@mergify

mergify Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

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).

@mergify
mergify Bot merged commit 35aefaf into main Aug 18, 2026
19 of 20 checks passed
@mergify
mergify Bot deleted the otaviom/glue/ga-hygiene branch August 18, 2026 13:20
@github-actions

Copy link
Copy Markdown
Contributor

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 18, 2026
@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Aug 18, 2026

This branch was previously deployed

1 inactive deployment
automation — 48a0c9c0 Deployed Aug 18, 2026 by aws-cdk-automation via validate-pr #361830
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

contribution/core This is a PR that came from AWS. p2 pr-linter/exempt-integ-test The PR linter will not require integ test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants