Skip to content

[AMORO-4240][AMS] Support staged table creation in REST catalog#4284

Open
johntomcat7408-cmyk wants to merge 2 commits into
apache:masterfrom
johntomcat7408-cmyk:fix-4240-stage-create
Open

[AMORO-4240][AMS] Support staged table creation in REST catalog#4284
johntomcat7408-cmyk wants to merge 2 commits into
apache:masterfrom
johntomcat7408-cmyk:fix-4240-stage-create

Conversation

@johntomcat7408-cmyk

Copy link
Copy Markdown
Contributor

Summary

This is the second PR for #4240.

  • Honor CreateTableRequest.stageCreate() for internal Iceberg REST catalogs.
  • Return staged metadata without writing files to the table location or registering the table in AMS.
  • Complete table creation when the client sends the following create commit.
  • Keep direct table creation and normal metadata commits unchanged.
  • Add an integration test for the staged-create transaction.

Why

Trino expects the target table location to remain empty between staged creation and the final commit. AMS previously wrote the initial metadata file during the staged request, so Trino rejected the location as non-empty.

Verification

  • mvn -ntp validate -pl amoro-ams -am -DskipTests -Pskip-dashboard-build
  • `mvn -ntp test -pl amoro-ams -am

@github-actions github-actions Bot added the module:ams-server Ams server module label Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:ams-server Ams server module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant