val df = spark.read.format("org.apache.iotdb.sparkdb").option("url","jdbc:iotdb://127.0.0.1:6667/").option("sql","select * from root").
option("lowerBound", [lower bound of time that you want query(include)]).option("upperBound", [upper bound of time that you want query(include)]).
...
...
@@ -129,7 +129,7 @@ You can also use narrow table form which as follows: (You can see part 4 about h
## from wide to narrow
```
import org.apache.iotdb.sparkdb._
import org.apache.iotdb.spark.db._
val wide_df = spark.read.format("org.apache.iotdb.sparkdb").option("url", "jdbc:iotdb://127.0.0.1:6667/").option("sql", "select * from root where time < 1100 and time > 1000").load
val narrow_df = Transformer.toNarrowForm(spark, wide_df)
...
...
@@ -137,7 +137,7 @@ val narrow_df = Transformer.toNarrowForm(spark, wide_df)
## from narrow to wide
```
import org.apache.iotdb.sparkdb._
import org.apache.iotdb.spark.db._
val wide_df = Transformer.toWideForm(spark, narrow_df)
```
...
...
@@ -147,7 +147,7 @@ val wide_df = Transformer.toWideForm(spark, narrow_df)