You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2021/05/17 14:20:07 UTC
[iotdb] 01/01: fix session ut
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch FixSessionUT
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit cb031547326f16570b61d97d44d2a79fedf29ad7
Author: JackieTien97 <Ja...@foxmail.com>
AuthorDate: Mon May 17 22:18:31 2021 +0800
fix session ut
---
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());