This is an automated email from the ASF dual-hosted git repository.

rong pushed a commit to branch rc/1.2.2
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit e43c94651f4cc473be213794e4686fc4ad0376a1
Author: Steve Yurong Su <[email protected]>
AuthorDate: Wed Sep 27 09:51:20 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) {

Reply via email to