Skip to content

[Managed table 1] Add staging table API to the spec - #1126

Merged
tdas merged 1 commit into
unitycatalog:mainfrom
yili-db:staging_table_api
Oct 29, 2025
Merged

tdas merged 1 commit into
unitycatalog:mainfrom
yili-db:staging_table_api

Conversation

@yili-db

@yili-db yili-db commented Oct 22, 2025

Copy link
Copy Markdown
Collaborator

PR Checklist

  • A description of the changes is added to the description of this PR.
  • If there is a related issue, make sure it is linked to this PR.
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added or modified a feature, documentation in docs is updated

Description of changes

Add staging table API to the spec

@yili-db
yili-db force-pushed the staging_table_api branch 7 times, most recently from 305a054 to 8bc5e75 Compare October 23, 2025 20:25
@yili-db yili-db changed the title Add staging table API to the spec [Managed table 1] Add staging table API to the spec Oct 27, 2025
@yili-db
yili-db force-pushed the staging_table_api branch 3 times, most recently from 466d239 to 3cc5522 Compare October 28, 2025 00:49
Comment thread api/Apis/TablesApi.md Outdated

Create a staging table

Creates a new staging table instance. Staging tables are used during managed table creation. Creating a managed table requires performing two actions – initializing the table data in cloud storage and creating the named table entry in the catalog – and these should appear as an atomic operation to other operations on catalog tables. A staging table is used to allocate storage for the managed table, and the `catalog_name.schema_name.name` parameters provided in this request are used to initialize any required storage properties and determine the storage URL that should be used for the data contained by this table. Temporary credentials can be obtained as though the staging table were a regular table to get access to the staging table’s storage. After the table’s data is initialized, the staging table is “promoted” to a managed table by creating a managed table with the same location as the staging table. This allows for the atomic creation of a managed table that already has full data written to its storage location. Note: the name provided must match the name used to initialize the staging table originally. WARNING: This API is experimental and will change in future versions.

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.

`catalog_name.schema_name.name` , what does this mean ? Is it an encoded HTML tag ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is the encoded single quote. It appears that this openapi->md can't handle single quote gracefully. So I just removed it.

Comment thread api/Apis/TablesApi.md

### Authorization

No authorization required

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.

What does this mean here ? No authorization required. What's the case that require the Authorization ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I guess that simply means that we don't document authorization in this all.yaml. This is also true for createTable in the same file.

# CreateStagingTable
## Properties

| Name | Type | Description | Notes |

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.

Seems like we don't have a column indicating which column is required or optional ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

All are required. Only optional ones will be marked as [optional]. For example, check CreateModelVersion.md

@yili-db
yili-db requested a review from openinx October 28, 2025 17:30
Comment thread api/all.yaml
creation of a managed table that already has full data written to its storage location. Note: the name provided
must match the name used to initialize the staging table originally.

WARNING: This API is experimental and will change in future versions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
WARNING: This API is experimental and will change in future versions.
WARNING: This API is experimental and may change in future versions.

@tdas tdas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just one comment. please address it in follow up PRs that you already have. i will merge this. thank you for adding this.

@tdas
tdas merged commit b436944 into unitycatalog:main Oct 29, 2025
yili-db added a commit to yili-db/unitycatalog that referenced this pull request Nov 10, 2025
**PR Checklist**

- [X] A description of the changes is added to the description of this
PR.
- [ ] If there is a related issue, make sure it is linked to this PR.
- [ ] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

Add staging table API to the spec

Signed-off-by: Yi Li <[email protected]>
@yili-db yili-db mentioned this pull request Nov 10, 2025
2 of 4 tasks
tdas added a commit that referenced this pull request Nov 18, 2025
**PR Checklist**

- [x] A description of the changes is added to the description of this
PR.
- [x] If there is a related issue, make sure it is linked to this PR.
- [ ] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**
Backport the #1126 to
branch-0.3, the related issue is here:
#1143

Signed-off-by: Yi Li <[email protected]>
Co-authored-by: Tathagata Das <[email protected]>
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.

3 participants