You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2022/03/28 05:36:25 UTC

[iotdb] branch master updated: Fix typos in mpp.thrift (#5360)

This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 0f21cef  Fix typos in mpp.thrift (#5360)
0f21cef is described below

commit 0f21cef109e01daf4bcd80ab0e940e8f3b4b7af5
Author: BaiJian <er...@hotmail.com>
AuthorDate: Mon Mar 28 13:35:36 2022 +0800

    Fix typos in mpp.thrift (#5360)
---
 .../apache/iotdb/db/mpp/buffer/DataBlockServiceImpl.java |  4 ++--
 .../org/apache/iotdb/db/service/InternalServiceImpl.java | 13 +++++++++++--
 thrift/src/main/thrift/mpp.thrift                        | 16 ++++++++--------
 3 files changed, 21 insertions(+), 12 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/buffer/DataBlockServiceImpl.java b/server/src/main/java/org/apache/iotdb/db/mpp/buffer/DataBlockServiceImpl.java
index 72058cb..1535288 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/buffer/DataBlockServiceImpl.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/buffer/DataBlockServiceImpl.java
@@ -21,7 +21,7 @@ package org.apache.iotdb.db.mpp.buffer;
 
 import org.apache.iotdb.mpp.rpc.thrift.DataBlockService;
 import org.apache.iotdb.mpp.rpc.thrift.EndOfDataBlockEvent;
-import org.apache.iotdb.mpp.rpc.thrift.GetDataBlockReqest;
+import org.apache.iotdb.mpp.rpc.thrift.GetDataBlockRequest;
 import org.apache.iotdb.mpp.rpc.thrift.GetDataBlockResponse;
 import org.apache.iotdb.mpp.rpc.thrift.NewDataBlockEvent;
 
@@ -34,7 +34,7 @@ public class DataBlockServiceImpl implements DataBlockService.Iface {
   }
 
   @Override
-  public GetDataBlockResponse getDataBlock(GetDataBlockReqest req) throws TException {
+  public GetDataBlockResponse getDataBlock(GetDataBlockRequest req) throws TException {
     throw new UnsupportedOperationException();
   }
 
diff --git a/server/src/main/java/org/apache/iotdb/db/service/InternalServiceImpl.java b/server/src/main/java/org/apache/iotdb/db/service/InternalServiceImpl.java
index 0cb5eee..acac721 100644
--- a/server/src/main/java/org/apache/iotdb/db/service/InternalServiceImpl.java
+++ b/server/src/main/java/org/apache/iotdb/db/service/InternalServiceImpl.java
@@ -19,8 +19,17 @@
 
 package org.apache.iotdb.db.service;
 
-import org.apache.iotdb.mpp.rpc.thrift.*;
 import org.apache.iotdb.mpp.rpc.thrift.InternalService;
+import org.apache.iotdb.mpp.rpc.thrift.SchemaFetchRequest;
+import org.apache.iotdb.mpp.rpc.thrift.SchemaFetchResponse;
+import org.apache.iotdb.mpp.rpc.thrift.TCancelFragmentInstanceReq;
+import org.apache.iotdb.mpp.rpc.thrift.TCancelPlanFragmentReq;
+import org.apache.iotdb.mpp.rpc.thrift.TCancelQueryReq;
+import org.apache.iotdb.mpp.rpc.thrift.TCancelResp;
+import org.apache.iotdb.mpp.rpc.thrift.TFetchFragmentInstanceStateReq;
+import org.apache.iotdb.mpp.rpc.thrift.TFragmentInstanceStateResp;
+import org.apache.iotdb.mpp.rpc.thrift.TSendFragmentInstanceReq;
+import org.apache.iotdb.mpp.rpc.thrift.TSendFragmentInstanceResp;
 
 import org.apache.thrift.TException;
 
@@ -58,7 +67,7 @@ public class InternalServiceImpl implements InternalService.Iface {
   }
 
   @Override
-  public ShcameFetchResponse fetchSchema(ShcameFetchReqest req) throws TException {
+  public SchemaFetchResponse fetchSchema(SchemaFetchRequest req) throws TException {
     throw new UnsupportedOperationException();
   }
 }
diff --git a/thrift/src/main/thrift/mpp.thrift b/thrift/src/main/thrift/mpp.thrift
index 4f31a07..00b6b6c 100644
--- a/thrift/src/main/thrift/mpp.thrift
+++ b/thrift/src/main/thrift/mpp.thrift
@@ -26,8 +26,8 @@ struct TFragmentInstanceId {
   3: required string instanceId
 }
 
-struct GetDataBlockReqest {
-  1: required TFragmentInstanceId fragnemtInstanceId
+struct GetDataBlockRequest {
+  1: required TFragmentInstanceId fragmentInstanceId
   2: required i64 blockId
 }
 
@@ -82,16 +82,16 @@ struct TCancelFragmentInstanceReq {
 
 struct TCancelResp {
   1: required bool cancelled
-  2: optional string messsga
+  2: optional string messsage
 }
 
-struct ShcameFetchReqest {
+struct SchemaFetchRequest {
   1: required binary serializedPathPatternTree
   2: required bool isPrefixMatchPath
 }
 
-struct ShcameFetchResponse {
-  1: required binary serializedSchameTree
+struct SchemaFetchResponse {
+  1: required binary serializedSchemaTree
 }
 
 service InternalService {
@@ -105,11 +105,11 @@ service InternalService {
 
     TCancelResp cancelFragmentInstance(TCancelFragmentInstanceReq req);
 
-    ShcameFetchResponse fetchSchema(ShcameFetchReqest req)
+    SchemaFetchResponse fetchSchema(SchemaFetchRequest req)
 }
 
 service DataBlockService {
-  GetDataBlockResponse getDataBlock(GetDataBlockReqest req);
+  GetDataBlockResponse getDataBlock(GetDataBlockRequest req);
 
   void onNewDataBlockEvent(NewDataBlockEvent e);