Hi Julian,

Here is our discussion:

## Goals

1. let's support double quota on multiply locations of a path (not only the 
measurement);

2. let's uniform the convert between path and string;

3. maybe we can expose Path object to users in session API.

## Examples

### Session

```
String deviceId = "root.sg1.\"d..1\"";
List<String> measurements = new ArrayList<>();
measurements.add("\"s..1\"");
```

### JDBC

```
statement.execute("insert into root.sg1.\"d..1\"(timestamp, 
\"s..1\") values(1,2)");

statement.execute("select * from root");

headers in result:
+-----------------------------+-------------------------------+
|                         Time|root.turbine1.\"d..1\".\"s..1\"|
+-----------------------------+-------------------------------+
|1970-01-01T08:00:00.001+08:00|                            2.0|
+-----------------------------+-------------------------------+
```

### TsFile

We store the following Strings in file:

```
String devceId = "root.sg1.\"d..\1";
String measurementId = "\"s..1\"";
```

### Schema tree in IoTDB

root -> sg1 -> \"d..1\" -> \"s..1\"


Thanks,
--
Jialin Qiao
School of Software, Tsinghua University

乔嘉林
清华大学 软件学院

> -----原始邮件-----
> 发件人: "Julian Feinauer" <[email protected]>
> 发送时间: 2020-08-27 16:30:15 (星期四)
> 收件人: "[email protected]" <[email protected]>, "[email protected]" 
> <[email protected]>, "Jialin Qiao" <[email protected]>
> 抄送: 
> 主题: Re: Support double quotation in Path and optimize the Path String
> 
> Hi Boris,
> 
> excellent initative!
> I also had a discussion with @Xiangdong Huang and @Jialin Qiao about that 
> matter.
> 
> Does one of you remember where we documented our discussion?
> 
> Julian
> 
> Am 27.08.20, 05:44 schrieb "Boris Zhu" <[email protected]>:
> 
>     Hi
>     I write a pr about using the detached full path instead of the full path
>     between SQL analysis and metadata in order to reduce unnecessary path
>     split. A new Class extends Path which is called “PartialPath” which
>     contains the detached full path. BTW, you can use double quotes in name of
>     device. here is the pr, 
> https://github.com/apache/incubator-iotdb/pull/1627
> 

Reply via email to