diff --git a/source/libs/scalar/test/scalar/scalarTests.cpp b/source/libs/scalar/test/scalar/scalarTests.cpp index 627c3c438c4c4cdb93ec91276326d5ffc6f8c2cf..f02bef4ce2079a07aa40b075665171cdfd53838e 100644 --- a/source/libs/scalar/test/scalar/scalarTests.cpp +++ b/source/libs/scalar/test/scalar/scalarTests.cpp @@ -1238,8 +1238,8 @@ TEST(columnTest, json_column_logic_op) { printf("--------------------json null---------------------\n"); - key = "k3"; - bool eRes2[len+len1] = {false, false, false, false, false, false, true, false, false, false, false, false, false}; + key = "k3"; // (null is true) return NULL, so use DBL_MAX represent NULL + double eRes2[len+len1] = {false, false, false, false, false, false, true, false, false, DBL_MAX, false, false, false}; for(int i = 0; i < len; i++){ makeCalculate(row, key, TSDB_DATA_TYPE_INT, &input[i], eRes2[i], op[i]); } @@ -1290,8 +1290,8 @@ TEST(columnTest, json_column_logic_op) { printf("---------------------json not exist--------------------\n"); - key = "k10"; - double eRes10[len+len1] = {false, false, false, false, false, false, true, false, false, false, false, false, false}; + key = "k10"; // (NULL is true) return NULL, so use DBL_MAX represent NULL + double eRes10[len+len1] = {false, false, false, false, false, false, true, false, DBL_MAX, false, false, false, false}; for(int i = 0; i < len; i++){ makeCalculate(row, key, TSDB_DATA_TYPE_INT, &input[i], eRes10[i], op[i]); } @@ -3456,7 +3456,7 @@ TEST(ScalarFunctionTest, powFunction_column) { //TINYINT AND FLOAT int8_t param0[] = {2, 3, 4}; - float param1[] = {3.0, 3.0, 2.0}; + float param1[] = {3.0, 3.0, 3.0}; scltMakeDataBlock(&input[0], TSDB_DATA_TYPE_TINYINT, 0, rowNum, false); pInput[0] = *input[0]; for (int32_t i = 0; i < rowNum; ++i) {