You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2023/09/26 11:27:44 UTC
[iotdb] 14/15: Revert "[To rel/1.2][ISSUE-11199] Pipe: fix NPE when casting from null values in InsertRowNode deserialization (#11200) (#11205)"
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch rc/1.2.2
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 34ab26e6c95694f7e7f993276eba0d0467e499de
Author: HTHou <hh...@outlook.com>
AuthorDate: Tue Sep 26 19:26:52 2023 +0800
Revert "[To rel/1.2][ISSUE-11199] Pipe: fix NPE when casting from null values in InsertRowNode deserialization (#11200) (#11205)"
This reverts commit 23e889c0ff0d45184144e2ba9196cf9af0178df0.
---
.../src/main/java/org/apache/iotdb/db/utils/CommonUtils.java | 7 -------
1 file changed, 7 deletions(-)
diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/CommonUtils.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/CommonUtils.java
index caed7e9178e..de6d3cec39f 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/CommonUtils.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/CommonUtils.java
@@ -38,7 +38,6 @@ import org.apache.commons.lang3.StringUtils;
import java.util.Arrays;
import java.util.List;
-import java.util.Objects;
@SuppressWarnings("java:S106") // for console outputs
public class CommonUtils {
@@ -111,9 +110,6 @@ public class CommonUtils {
}
public static boolean checkCanCastType(TSDataType src, TSDataType dest) {
- if (Objects.isNull(src)) {
- return true;
- }
switch (src) {
case INT32:
if (dest == TSDataType.INT64 || dest == TSDataType.FLOAT || dest == TSDataType.DOUBLE) {
@@ -132,9 +128,6 @@ public class CommonUtils {
}
public static Object castValue(TSDataType srcDataType, TSDataType destDataType, Object value) {
- if (Objects.isNull(value)) {
- return null;
- }
switch (srcDataType) {
case INT32:
if (destDataType == TSDataType.INT64) {