You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2019/08/29 14:14:14 UTC

[GitHub] [incubator-iotdb] LeiRui commented on a change in pull request #303: transform old form to new form and use a parameter to control

LeiRui commented on a change in pull request #303: transform old form to new form and use a parameter to control
URL: https://github.com/apache/incubator-iotdb/pull/303#discussion_r319094082
 
 

 ##########
 File path: spark-tsfile/src/test/scala/org/apache/iotdb/tsfile/TSFileSuit.scala
 ##########
 @@ -214,4 +214,28 @@ class TSFileSuit extends FunSuite with BeforeAndAfterAll {
     Assert.assertEquals(expected, df.schema)
   }
 
+  test("testTransform1") {
+    val df = spark.read.tsfile(tsfile1)
+    df.createOrReplaceTempView("tsfile_table")
+    val newDf = spark.sql("select * from tsfile_table " +
+      "where (`device_1.sensor_1`>0 or `device_1.sensor_2` < 22) and time < 4")
+    Assert.assertEquals(3, newDf.count())
+  }
+
+  test("testTransform2") {
 
 Review comment:
   test("testTransform2")  and test("testTransform3") can't pass.
   Please check this problem.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services