You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"create table if not exists sg21 (tag1 string tag, ss1 string attribute, ss2 int32 field)");
886
886
// only tag
887
-
st1.execute("insert into sg21(tag1) values('1')");
887
+
try {
888
+
st1.execute("insert into sg21(tag1) values('1')");
889
+
} catch (SQLExceptione) {
890
+
assertEquals("507: No Field column present, please check the request", e.getMessage());
891
+
}
888
892
// only time
889
893
try {
890
894
st1.execute("insert into sg21(time) values(1)");
891
895
} catch (SQLExceptione) {
892
896
assertEquals(
893
-
"305: [INTERNAL_SERVER_ERROR(305)] Exception occurred: \"insert into sg21(time) values(1)\". executeStatement failed. No column other than Time present, please check the request",
894
-
e.getMessage());
897
+
"507: No column other than Time present, please check the request", e.getMessage());
895
898
}
896
899
// sleep a while to avoid the same timestamp between two insertions
897
900
Thread.sleep(10);
898
901
// only attribute
899
-
st1.execute("insert into sg21(ss1) values('1')");
902
+
try {
903
+
st1.execute("insert into sg21(ss1) values('1')");
904
+
} catch (SQLExceptione) {
905
+
assertEquals("507: No Field column present, please check the request", e.getMessage());
906
+
}
900
907
// sleep a while to avoid the same timestamp between two insertions
Copy file name to clipboardExpand all lines: integration-test/src/test/java/org/apache/iotdb/relational/it/query/old/builtinfunction/scalar/IoTDBFormatFunctionTableIT.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ public class IoTDBFormatFunctionTableIT {
76
76
"INSERT INTO date_table(time, device_id, s1) VALUES (20, 'd1', '2006-07-04')",
77
77
78
78
// data for special series
79
-
"INSERT INTO null_table(time, device_id) VALUES (10, 'd1')",
79
+
"INSERT INTO null_table(time, device_id, s1) VALUES (10, 'd1', null)",
0 commit comments