This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch rel/0.12
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/0.12 by this push:
new 4cec5b7 fix session ut (#3211)
4cec5b7 is described below
commit 4cec5b7880f1cf9bc3200fc8a8e96604b4da811d
Author: Jackie Tien <[email protected]>
AuthorDate: Tue May 18 09:35:37 2021 +0800
fix session ut (#3211)
---
session/src/test/java/org/apache/iotdb/session/SessionUT.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/session/src/test/java/org/apache/iotdb/session/SessionUT.java
b/session/src/test/java/org/apache/iotdb/session/SessionUT.java
index 26d0ddd..bd0ed59 100644
--- a/session/src/test/java/org/apache/iotdb/session/SessionUT.java
+++ b/session/src/test/java/org/apache/iotdb/session/SessionUT.java
@@ -172,7 +172,7 @@ public class SessionUT {
RowRecord record = dataSet.next();
int nullCount = 0;
for (int j = 0; j < 4; ++j) {
- if (record.getFields().get(j) == null) {
+ if (record.getFields().get(j) == null ||
record.getFields().get(j).getDataType() == null) {
++nullCount;
} else {
assertEquals(i, record.getFields().get(j).getLongV());