sunjincheng121 commented on a change in pull request #817: [IOTDB-497] Apache 
Flink Connector Support
URL: https://github.com/apache/incubator-iotdb/pull/817#discussion_r382880590
 
 

 ##########
 File path: example/session/src/main/java/org/apache/iotdb/SessionExample.java
 ##########
 @@ -44,9 +44,15 @@ public static void main(String[] args)
     session.open();
 
     session.setStorageGroup("root.sg1");
-    session.createTimeseries("root.sg1.d1.s1", TSDataType.INT64, 
TSEncoding.RLE, CompressionType.SNAPPY);
-    session.createTimeseries("root.sg1.d1.s2", TSDataType.INT64, 
TSEncoding.RLE, CompressionType.SNAPPY);
-    session.createTimeseries("root.sg1.d1.s3", TSDataType.INT64, 
TSEncoding.RLE, CompressionType.SNAPPY);
+    if (session.checkTimeseriesExists("root.sg1.d1.s1")) {
+      session.createTimeseries("root.sg1.d1.s1", TSDataType.INT64, 
TSEncoding.RLE, CompressionType.SNAPPY);
+    }
+    if (session.checkTimeseriesExists("root.sg1.d1.s2")) {
+      session.createTimeseries("root.sg1.d1.s2", TSDataType.INT64, 
TSEncoding.RLE, CompressionType.SNAPPY);
+    }
+    if (session.checkTimeseriesExists("root.sg1.d1.s3")) {
+      session.createTimeseries("root.sg1.d1.s3", TSDataType.INT64, 
TSEncoding.RLE, CompressionType.SNAPPY);
+    }
 
 Review comment:
   This is not necessary in this PR, right? [1]
   https://github.com/apache/incubator-iotdb/pull/824/files

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to