-
Notifications
You must be signed in to change notification settings - Fork 414
Relax REST client /v1/config response constraints
#2148
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
Relax REST client /v1/config response constraints
#2148
Conversation
|
Thanks @ccancellieri for raising this PR. This is something that ideally should be fixed on the BigLake side, but there is no harm to be a bit more relaxed about deserializing these messages. Thoughts @kevinjqliu ? |
+1 BigLake REST catalog API should be fixed in order to be compliant with the Iceberg REST Catalog spec, which requires both That said, we've seen this issue with Nessie IRC as well (see #1524). As an IRC client, pyiceberg can be more relaxed about these fields. |
Co-authored-by: Fokko Driesprong <fokko@apache.org>
Co-authored-by: Fokko Driesprong <fokko@apache.org>
pyiceberg/catalog/rest/__init__.py
Outdated
|
|
||
| class ListNamespaceResponse(IcebergBaseModel): | ||
| namespaces: List[Identifier] = Field() | ||
| namespaces: Optional[List[Identifier]] = Field(default_factory=list) |
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.
this ones odd, i think we should revert this change. The listNamespace response should return an empty namespaces list
|
cc @rambleraptor @talatuyarer, what do you think? |
/v1/config response constraints
This PR can be used as an interim solution, but other clients will probably error out , so eventually this has to be fixed in BigLake :) |
|
Thanks @ccancellieri for the PR and @Fokko for the review :) |
fixing apache#2122 <!-- In the case this PR will resolve an issue, please replace ${GITHUB_ISSUE_ID} below with the actual Github issue id. --> <!-- Closes #${GITHUB_ISSUE_ID} --> # Rationale for this change # Are these changes tested? Yes tested locally # Are there any user-facing changes? Nope, just use them --------- Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com> Co-authored-by: Fokko Driesprong <fokko@apache.org>
fixing apache#2122 <!-- In the case this PR will resolve an issue, please replace ${GITHUB_ISSUE_ID} below with the actual Github issue id. --> <!-- Closes #${GITHUB_ISSUE_ID} --> # Rationale for this change # Are these changes tested? Yes tested locally # Are there any user-facing changes? Nope, just use them --------- Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com> Co-authored-by: Fokko Driesprong <fokko@apache.org>
fixing #2122
Rationale for this change
Are these changes tested?
Yes tested locally
Are there any user-facing changes?
Nope, just use them