-
Notifications
You must be signed in to change notification settings - Fork 63
feat: add table create/replace/update interface to catalog #281
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
base: main
Are you sure you want to change the base?
Conversation
| /// May throw ValidationException if any update cannot be applied to the current table | ||
| /// metadata. May throw CommitFailedException if the updates cannot be committed due to | ||
| /// conflicts. | ||
| virtual void CommitTransaction() = 0; |
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.
Do we want to keep backward compatibility with deprecation e.g.
[[deprecated("Use CommitTransaction() that returns Status")]]
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.
I think we can break any existing API before 1.0.0. We just released 0.1.0 a while ago and I don't think it is ready for production yet.
src/iceberg/catalog.h
Outdated
|
|
||
| /// \brief Starts a transaction to create or replace the table | ||
| /// | ||
| /// \breturn the Transaction to create or replace the table |
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.
typo? '\return'?
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.
Good catch! Fixed the typo.
src/iceberg/table.h
Outdated
| /// \brief Create a new transaction for this table | ||
| /// | ||
| /// \return a shared pointer to the new Transaction | ||
| virtual std::shared_ptr<Transaction> NewTransaction(); |
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.
We don't want to add 'const' just like NewScan() and io()?
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.
Yes, it should be const.
No description provided.