This is an automated email from the ASF dual-hosted git repository.
qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new a24bc19 add measurement with blank insert in session test
a24bc19 is described below
commit a24bc196d58dfef9e9257d7e388699d661b21568
Author: qiaojialin <[email protected]>
AuthorDate: Wed Jun 3 18:18:54 2020 +0800
add measurement with blank insert in session test
---
.../org/apache/iotdb/session/IoTDBSessionIT.java | 25 ++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/session/src/test/java/org/apache/iotdb/session/IoTDBSessionIT.java
b/session/src/test/java/org/apache/iotdb/session/IoTDBSessionIT.java
index 82ab497..9aa0e67 100644
--- a/session/src/test/java/org/apache/iotdb/session/IoTDBSessionIT.java
+++ b/session/src/test/java/org/apache/iotdb/session/IoTDBSessionIT.java
@@ -108,6 +108,31 @@ public class IoTDBSessionIT {
}
@Test
+ public void testInsertByBlankStrAndInferType() throws
IoTDBConnectionException, StatementExecutionException {
+ session = new Session("127.0.0.1", 6667, "root", "root");
+ session.open();
+
+ String deviceId = "root.sg1.d1";
+ List<String> measurements = new ArrayList<>();
+ measurements.add("s1 ");
+
+ List<String> values = new ArrayList<>();
+ values.add("1.0");
+ session.insertRecord(deviceId, 1L, measurements, values);
+
+ String[] expected = new String[]{"1\t1.0"};
+
+ SessionDataSet dataSet = session.executeQueryStatement("select s1 from
root.sg1.d1");
+ int i = 0;
+ while (dataSet.hasNext()) {
+ assertEquals(expected[i], dataSet.next().toString());
+ i++;
+ }
+
+ session.close();
+ }
+
+ @Test
public void testInsertByStrAndInferType() throws IoTDBConnectionException,
StatementExecutionException {
session = new Session("127.0.0.1", 6667, "root", "root");
session.open();