-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
OpenAPI: Changes for freshness-aware table loading #11946
base: main
Are you sure you want to change the base?
Conversation
Based on this improvement proposal: https://docs.google.com/document/d/1rnVSP_iv2I47giwfAe-Z3DYhKkKwWCVvCkC9rEvtaLA |
18e0161
to
0d11567
Compare
Thanks for taking a look @danielcweeks ! I applied your suggested change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, this will be very useful in catalog federation scenarios where a copy of metadata is intended to be stored on the federating catalog without sacrificing consistency for example in Apache Polaris' proposed flow for federation+migration to/from other Iceberg REST catalogs (https://docs.google.com/document/d/1Q6eEytxb0btpOPcL8RtkULskOlYUCo_3FLvFRnHkzBY/edit?tab=t.0#bookmark=id.dm0mcu9wuv09)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall, left minor comments.
open-api/rest-catalog-open-api.yaml
Outdated
schema: | ||
type: string | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: remove the extra empty line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
open-api/rest-catalog-open-api.yaml
Outdated
etag: | ||
name: ETag | ||
in: header | ||
description: Identifies a certain state of the table metadata. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is version
more accurate here?
description: Identifies a certain state of the table metadata. | |
description: Identifies a unique version of the table metadata. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, suggestion applied
Added ETag and If-None-Match headers and 304 response for table loading.
0d11567
to
77d9666
Compare
Added ETag and If-None-Match headers and 304 response for table loading.