You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hu...@apache.org on 2022/12/29 14:37:43 UTC

[iotdb] 04/05: enable source gen

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

hui pushed a commit to branch ml/thrift
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit c68f535cbf1cf0546f842002fd9b8fbe6f43cb3c
Author: Minghui Liu <li...@foxmail.com>
AuthorDate: Thu Dec 29 22:30:57 2022 +0800

    enable source gen
---
 pom.xml                                     | 2 +-
 thrift-mlnode/src/main/thrift/mlnode.thrift | 3 ++-
 thrift/src/main/thrift/datanode.thrift      | 1 +
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 38ca520c3e..054a201048 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1353,7 +1353,7 @@
                                     <generator>py</generator>
                                     <thriftExecutable>${thrift.exec.absolute.path}</thriftExecutable>
                                     <thriftSourceRoot>${basedir}/src/main/thrift</thriftSourceRoot>
-                                    <includes>**/common.thrift,**/client.thrift</includes>
+                                    <includes>**/common.thrift,**/client.thrift,**/datanode.thrift,**/confignode.thrift,**/mlnode.thrift</includes>
                                     <outputDirectory>${project.build.directory}/generated-sources-python/</outputDirectory>
                                 </configuration>
                             </execution>
diff --git a/thrift-mlnode/src/main/thrift/mlnode.thrift b/thrift-mlnode/src/main/thrift/mlnode.thrift
index 26e5267d16..5cd4412a25 100644
--- a/thrift-mlnode/src/main/thrift/mlnode.thrift
+++ b/thrift-mlnode/src/main/thrift/mlnode.thrift
@@ -18,7 +18,8 @@
  */
 
 include "common.thrift"
-namespace py iotdb.thrift.mlnode
+namespace java org.apache.iotdb.mlnode.rpc.thrift
+namespace py iotdb.mlnode.service.thrift
 
 struct TCreateTrainingTaskReq {
   1: required string modelId
diff --git a/thrift/src/main/thrift/datanode.thrift b/thrift/src/main/thrift/datanode.thrift
index 1558755c45..ee5d39a2ee 100644
--- a/thrift/src/main/thrift/datanode.thrift
+++ b/thrift/src/main/thrift/datanode.thrift
@@ -18,6 +18,7 @@
  */
 include "common.thrift"
 namespace java org.apache.iotdb.mpp.rpc.thrift
+namespace py iotdb.thrift.datanode
 
 struct TCreateSchemaRegionReq {
   1: required common.TRegionReplicaSet regionReplicaSet