-
Notifications
You must be signed in to change notification settings - Fork 751
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
ISSUE-2361: remote backend for fuse table #2355
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,13 +16,13 @@ | |
use std::sync::Arc; | ||
|
||
use common_exception::Result; | ||
use common_meta_types::CommitTableReply; | ||
use common_meta_types::CreateDatabaseReply; | ||
use common_meta_types::CreateTableReply; | ||
use common_meta_types::DatabaseInfo; | ||
use common_meta_types::MetaId; | ||
use common_meta_types::MetaVersion; | ||
use common_meta_types::TableInfo; | ||
use common_meta_types::UpsertTableOptionReply; | ||
use common_planners::CreateDatabasePlan; | ||
use common_planners::CreateTablePlan; | ||
use common_planners::DropDatabasePlan; | ||
|
@@ -56,12 +56,13 @@ pub trait MetaApi: Send + Sync { | |
table_version: Option<MetaVersion>, | ||
) -> Result<Arc<TableInfo>>; | ||
|
||
async fn commit_table( | ||
async fn upsert_table_option( | ||
&self, | ||
table_id: MetaId, | ||
new_table_version: MetaVersion, | ||
new_snapshot_location: String, | ||
) -> Result<CommitTableReply>; | ||
table_version: MetaVersion, | ||
option_key: String, | ||
option_value: String, | ||
) -> Result<UpsertTableOptionReply>; | ||
Comment on lines
+59
to
+65
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not just define a An update of a single field is only useful with non-serialized concurrency control. E.g. two concurrent commutative update operations to a single table. As MetaVersion must be matched, it is serialized. Updating the entire table simplifies the backend impl. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. right, that is more reasonable. let's fix this in latter prs There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then everything else looks good enough to me. |
||
|
||
fn name(&self) -> String; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
// limitations under the License. | ||
// | ||
|
||
pub type CommitTableReply = (); | ||
pub type UpsertTableOptionReply = (); |
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.
Miss
Date32
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.
got it