mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-24 08:50:40 +00:00
refactor: grpc insert (#2188)
* feat: interval type for row protocol * feat: minor refactor grpc insert * Update src/common/grpc-expr/src/util.rs Co-authored-by: Ruihang Xia <waynestxia@gmail.com> * fix: by comment --------- Co-authored-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
@@ -665,7 +665,7 @@ impl GrpcQueryHandler for DistInstance {
|
||||
async fn do_query(&self, request: Request, ctx: QueryContextRef) -> Result<Output> {
|
||||
match request {
|
||||
Request::Inserts(requests) => self.handle_dist_insert(requests, ctx).await,
|
||||
Request::RowInserts(_) | Request::RowDelete(_) => NotSupportedSnafu {
|
||||
Request::RowInserts(_) | Request::RowDeletes(_) => NotSupportedSnafu {
|
||||
feat: "row insert/delete",
|
||||
}
|
||||
.fail(),
|
||||
|
||||
@@ -44,7 +44,7 @@ impl GrpcQueryHandler for Instance {
|
||||
|
||||
let output = match request {
|
||||
Request::Inserts(requests) => self.handle_inserts(requests, ctx.clone()).await?,
|
||||
Request::RowInserts(_) | Request::RowDelete(_) => {
|
||||
Request::RowInserts(_) | Request::RowDeletes(_) => {
|
||||
return NotSupportedSnafu {
|
||||
feat: "row insert/delete",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user