Skip to content

Commit a38274f

Browse files
committed
update proto
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
1 parent 2342999 commit a38274f

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ etcd-client = { git = "https://github.com/GreptimeTeam/etcd-client", rev = "f62d
147147
fst = "0.4.7"
148148
futures = "0.3"
149149
futures-util = "0.3"
150-
greptime-proto = { git = "https://github.com/GreptimeTeam/greptime-proto.git", rev = "d75496d5d09dedcd0edcade57ccf0a522f4393ae" }
150+
greptime-proto = { git = "https://github.com/GreptimeTeam/greptime-proto.git", rev = "295be556573f7f90b6b004d046d3f2f127a5739f" }
151151
hex = "0.4"
152152
http = "1"
153153
humantime = "2.1"

src/api/src/helper.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ fn ddl_request_type(request: &DdlRequest) -> &'static str {
603603
Some(Expr::CreateView(_)) => "ddl.create_view",
604604
Some(Expr::DropView(_)) => "ddl.drop_view",
605605
Some(Expr::AlterDatabase(_)) => "ddl.alter_database",
606+
Some(Expr::CommentOn(_)) => "ddl.comment_on",
606607
None => "ddl.empty",
607608
}
608609
}

src/common/meta/src/rpc/ddl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ pub enum CommentObjectType {
12981298
}
12991299

13001300
impl CommentOnTask {
1301-
pub fn table_ref(&self) -> TableReference {
1301+
pub fn table_ref(&self) -> TableReference<'_> {
13021302
TableReference {
13031303
catalog: &self.catalog_name,
13041304
schema: &self.schema_name,

src/frontend/src/instance/grpc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ fn fill_catalog_and_schema_from_context(ddl_expr: &mut DdlExpr, ctx: &QueryConte
330330
Expr::DropView(expr) => {
331331
check_and_fill!(expr);
332332
}
333+
Expr::CommentOn(expr) => {
334+
check_and_fill!(expr);
335+
}
333336
}
334337
}
335338

0 commit comments

Comments
 (0)