HTHou opened a new issue #2573:
URL: https://github.com/apache/iotdb/issues/2573
When we create timeseries or insert data into timeseries like
`root.sg.d1\n.s1` with session api, I find out this kind of operation is
executed successfully!
Here is my test code.
```java
public static void main(String[] args)
throws IoTDBConnectionException, StatementExecutionException {
session = new Session("127.0.0.1", 6667, "root", "root");
session.open(false);
//set session fetchSize
session.setFetchSize(10000);
try {
createTimeseries();
insertRecord();
} catch (Exception e) {
e.printStackTrace();
}
}
private static void createTimeseries()
throws IoTDBConnectionException, StatementExecutionException {
session.createTimeseries("root.sg888.d2"+"\n"+".s1", TSDataType.INT64,
TSEncoding.RLE,
CompressionType.SNAPPY);
}
private static void insertRecord() throws IoTDBConnectionException,
StatementExecutionException {
String deviceId = "root.sg888.d88"+"\n";
List<String> measurements = new ArrayList<>();
List<TSDataType> types = new ArrayList<>();
measurements.add("s1");
types.add(TSDataType.TEXT);
for (long time = 0; time < 100; time++) {
List<Object> values = new ArrayList<>();
values.add("sssss");
session.insertRecord(deviceId, time, measurements, types, values);
}
}
```
After insert these data successfully, I tried to query these data but I
cannot get any result, even the timeseries themselves.
- Version master, v0.11, v0.10
----------------------------------------------------------------
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]