Skip to content

fix(glue): return null LocationUri when database has none#514

Merged
Nahuel990 merged 2 commits intoministackorg:mainfrom
dcrn:fix-glue-locationuri
Apr 29, 2026
Merged

fix(glue): return null LocationUri when database has none#514
Nahuel990 merged 2 commits intoministackorg:mainfrom
dcrn:fix-glue-locationuri

Conversation

@dcrn
Copy link
Copy Markdown
Contributor

@dcrn dcrn commented Apr 29, 2026

Glue's CreateDatabase was defaulting LocationUri to "" when not provided. AWS and Localstack both return null in this case, and Iceberg relies on this — it checks database.getLocationUri() == null to detect a missing location (GlueCatalog.java:299).

Fixes the default to None so it serialises as JSON null, and adds a test covering both the absent and present cases.

@github-actions
Copy link
Copy Markdown

Docker image for this PR has been published: ministackorg/ministack-preview-build:pr-514-1279d8af

@dcrn
Copy link
Copy Markdown
Contributor Author

dcrn commented Apr 29, 2026

Confirmed this fixes the issue. The preview builds are excellent 👌

@github-actions
Copy link
Copy Markdown

Docker image for this PR has been published: ministackorg/ministack-preview-build:pr-514-a684799d

@Nahuel990 Nahuel990 merged commit cd40ad7 into ministackorg:main Apr 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants