Skip to content

Rest: Implement register table #1521

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 1 commit into
base: main
Choose a base branch
from

Conversation

gabeiglio
Copy link

Which issue does this PR close?

What changes are included in this PR?

  • New type for RegisterTableRequest
  • New method in rest catalog for implementing register table

Are these changes tested?

  • 2 unit tests for a successful registered table operation and a failed one due to namespace is non existent
  • Integration tests for a successful registered table operation

Im new to Rust so any feedback is welcomed! :)

@gabeiglio gabeiglio force-pushed the rest-register-table branch from 0bfda56 to 5c342f3 Compare July 17, 2025 07:52
Comment on lines +804 to +814
StatusCode::SERVICE_UNAVAILABLE => {
return Err(Error::new(
ErrorKind::Unexpected,
"The service is not ready to handle the request.",
));
}
StatusCode::INTERNAL_SERVER_ERROR => {
return Err(Error::new(
ErrorKind::Unexpected,
"An unknown server-side problem occurred; the commit state is unknown.",
));
Copy link
Author

Choose a reason for hiding this comment

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

Not sure if these are needed

@gabeiglio gabeiglio marked this pull request as ready for review July 17, 2025 16:37
Comment on lines +780 to +791
StatusCode::UNAUTHORIZED => {
return Err(Error::new(
ErrorKind::Unexpected,
"Authenticated user does not have the necessary permissions.",
));
}
StatusCode::FORBIDDEN => {
return Err(Error::new(
ErrorKind::Unexpected,
"Authenticated user does not have the necessary permissions.",
));
}
Copy link
Author

Choose a reason for hiding this comment

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

Also not sure if we need to check for these cases

@gabeiglio gabeiglio force-pushed the rest-register-table branch from 5c342f3 to 574069f Compare July 18, 2025 16:07
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.

Implement register_table for rest catalog
1 participant