Skip to content

feat: add OpenTableFormatInput support for Glue CreateTable#9886

Open
raajheshkannaa wants to merge 5 commits intogetmoto:masterfrom
raajheshkannaa:feat/glue-iceberg-open-table-format
Open

feat: add OpenTableFormatInput support for Glue CreateTable#9886
raajheshkannaa wants to merge 5 commits intogetmoto:masterfrom
raajheshkannaa:feat/glue-iceberg-open-table-format

Conversation

@raajheshkannaa
Copy link
Contributor

Fixes #9705

Summary

  • Accept OpenTableFormatInput parameter in create_table for Glue Iceberg tables
  • When IcebergInput is provided, automatically set Parameters.table_type to ICEBERG and Parameters.metadata_location from the input
  • Returns the Iceberg metadata in get_table responses via the table's Parameters dict

Changes

  • moto/glue/models.py: accept and process OpenTableFormatInput in FakeTable.__init__ and GlueBackend.create_table
  • moto/glue/responses.py: pass OpenTableFormatInput from request body to backend
  • tests/test_glue/test_datacatalog.py: tests for Iceberg table creation and parameter verification

@codecov
Copy link

codecov bot commented Mar 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.12%. Comparing base (a3e1138) to head (fcc916f).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9886      +/-   ##
==========================================
- Coverage   93.12%   93.12%   -0.01%     
==========================================
  Files        1314     1314              
  Lines      119306   119310       +4     
==========================================
+ Hits       111101   111104       +3     
- Misses       8205     8206       +1     
Flag Coverage Δ
servertests 29.15% <0.00%> (-0.01%) ⬇️
unittests 93.09% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

[Glue] Support OpenTableFormatInput for Iceberg table creation

1 participant