“5f25e3fd065f7e7cfde608fc3bfa399160afaaf6”上不存在“projects/open-android/imports.yml”
提交 62fcb36b 编写于 作者: G Ganlin Zhao

[TD-14121]<fix>: script/general/compute/cast.sim failed on ARM64 Linux

上级 5abe0e13
...@@ -1725,9 +1725,6 @@ void castConvert(int16_t inputType, int16_t inputBytes, char *input, int16_t Out ...@@ -1725,9 +1725,6 @@ void castConvert(int16_t inputType, int16_t inputBytes, char *input, int16_t Out
tfree(newColData); tfree(newColData);
} else { } else {
GET_TYPED_DATA(*(int64_t *)output, int64_t, inputType, input); GET_TYPED_DATA(*(int64_t *)output, int64_t, inputType, input);
if (*(int64_t *)output == TSDB_DATA_BIGINT_NULL) {
SET_TYPED_DATA(output, OutputType, INT64_MAX);
}
} }
break; break;
case TSDB_DATA_TYPE_UBIGINT: case TSDB_DATA_TYPE_UBIGINT:
...@@ -1758,9 +1755,6 @@ void castConvert(int16_t inputType, int16_t inputBytes, char *input, int16_t Out ...@@ -1758,9 +1755,6 @@ void castConvert(int16_t inputType, int16_t inputBytes, char *input, int16_t Out
} else { } else {
GET_TYPED_DATA(*(int64_t *)output, int64_t, inputType, input); GET_TYPED_DATA(*(int64_t *)output, int64_t, inputType, input);
} }
if (*(int64_t *)output == TSDB_DATA_BIGINT_NULL) {
SET_TYPED_DATA(output, OutputType, INT64_MAX);
}
break; break;
case TSDB_DATA_TYPE_BINARY: case TSDB_DATA_TYPE_BINARY:
if (inputType == TSDB_DATA_TYPE_BOOL) { if (inputType == TSDB_DATA_TYPE_BOOL) {
......
...@@ -1158,11 +1158,15 @@ endi ...@@ -1158,11 +1158,15 @@ endi
if $data40 != 4 then if $data40 != 4 then
return -1 return -1
endi endi
if $data50 != 9223372036854775807 then if $data50 != NULL then
if $data50 != 9223372036854775807 then #for arm64
return -1 return -1
endi
endi endi
if $data60 != 9223372036854775807 then if $data60 != NULL then
if $data60 != 9223372036854775807 then #for arm64
return -1 return -1
endi
endi endi
sql select cast(c6 as binary(60)) from tb1; sql select cast(c6 as binary(60)) from tb1;
if $rows != 7 then if $rows != 7 then
...@@ -1233,12 +1237,15 @@ endi ...@@ -1233,12 +1237,15 @@ endi
if $data40 != @70-01-01 08:00:00.004@ then if $data40 != @70-01-01 08:00:00.004@ then
return -1 return -1
endi endi
print $data50 if $data50 != NULL then
if $data50 != @94-08-17 15:12:55.807@ then if $data50 != @94-08-17 15:12:55.807@ then #for arm64
return -1 return -1
endi
endi endi
if $data60 != @94-08-17 15:12:55.807@ then if $data60 != NULL then
if $data60 != @94-08-17 15:12:55.807@ then #for arm64
return -1 return -1
endi
endi endi
sql select cast(c6 as nchar(50)) from tb1; sql select cast(c6 as nchar(50)) from tb1;
if $rows != 7 then if $rows != 7 then
...@@ -1332,11 +1339,15 @@ endi ...@@ -1332,11 +1339,15 @@ endi
if $data40 != 4 then if $data40 != 4 then
return -1 return -1
endi endi
if $data50 != 9223372036854775807 then if $data50 != NULL then
if $data50 != 9223372036854775807 then #for arm64
return -1 return -1
endi
endi endi
if $data60 != 9223372036854775807 then if $data60 != NULL then
if $data60 != 9223372036854775807 then #for arm64
return -1 return -1
endi
endi endi
sql select cast(c7 as binary(400)) from tb1; sql select cast(c7 as binary(400)) from tb1;
if $rows != 7 then if $rows != 7 then
...@@ -1407,11 +1418,15 @@ endi ...@@ -1407,11 +1418,15 @@ endi
if $data40 != @70-01-01 08:00:00.004@ then if $data40 != @70-01-01 08:00:00.004@ then
return -1 return -1
endi endi
if $data50 != @94-08-17 15:12:55.807@ then if $data50 != NULL then
if $data50 != @94-08-17 15:12:55.807@ then #for arm64
return -1 return -1
endi
endi endi
if $data60 != @94-08-17 15:12:55.807@ then if $data50 != NULL then
if $data60 != @94-08-17 15:12:55.807@ then #for arm64
return -1 return -1
endi
endi endi
sql select cast(c7 as nchar(500)) from tb1; sql select cast(c7 as nchar(500)) from tb1;
if $rows != 7 then if $rows != 7 then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册