Hi,

Okey.. I read the source code and find a new option called "form" is added:

if we want to use the wide table, write Java codes like:

```
Dataset<Row> df =
spark.read().format("org.apache.iotdb.tsfile").load("TSFILE PATH");
df.show();
```

If we want to use the narrow table, write Java codes like:
```
Dataset<Row> df =
spark.read().format("org.apache.iotdb.tsfile").option("form",
"narrow_form").load("TSFILE PATH");
df.show();
```
It should be commented in the document, I think.

Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University

 黄向东
清华大学 软件学院


Xiangdong Huang <[email protected]> 于2019年9月10日周二 上午11:50写道:

> Hi,
>
> As PR[1] has been merged, but I can not find how to use the new feature
> from the iotdb.apache.org or even spark/Readme.md.
>
> What is more, even I read the introduction about this PR, I can only get
> how to use it in scala, but how to use it in Java?
>
> [1] https://github.com/apache/incubator-iotdb/pull/303
>
> Best,
> -----------------------------------
> Xiangdong Huang
> School of Software, Tsinghua University
>
>  黄向东
> 清华大学 软件学院
>

Reply via email to