Skip to content

Add optional format parameter to loadGenericTable #1432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

eric-maynard
Copy link
Contributor

To support table conversion on read, a small spec change is needed to the loadGenericTable endpoint. This will allow the client to optionally request conversion to a specified format, and if specified it could allow the catalog to reject the request when conversion is not possible.

@@ -116,7 +116,15 @@ paths:
Load a generic table from the catalog under the given namespace.

The response contains all table information passed during create.

parameters:
- name: format
Copy link
Contributor

Choose a reason for hiding this comment

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

when i look at Rahil's design, i think he is proposing to add a new key target-metadata-path in the loadGenericTable response

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is for the request, not the response.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, in this doc, i don't see he is proposing to add new fields to the load API, I though he is just going to include this field in the response for all tables with other read format enabled

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To be clear I am proposing this -- but we'll do an ML thread to hash out the details. There is a bit of discussion here on Rahil's draft PR that I think you're referring to, but that's not merged yet. Sorry for any confusion

Copy link
Contributor

Choose a reason for hiding this comment

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

sorry, I am not referring to the pr, what i
mean is the doc here https://docs.google.com/document/d/1SfQXPOc0EtgESEBQPtgn2nTr1lyscxg4t-HskjUSPgI/edit?tab=t.0#heading=h.f583w6js2dar. Maybe we should go through the design first to make sure we are all aligned on the API changes.

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