Skip to content

Commit

Permalink
fix p0
Browse files Browse the repository at this point in the history
  • Loading branch information
LiBinfeng-01 committed Feb 18, 2025
1 parent 5040d48 commit c58460f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 20 deletions.
4 changes: 4 additions & 0 deletions regression-test/data/datatype_p0/double/test_double_nan.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !select --
1 \N

-- !select --
\N

4 changes: 4 additions & 0 deletions regression-test/data/datatype_p0/float/test_float_nan.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !select --
1 \N

-- !select --
\N

10 changes: 2 additions & 8 deletions regression-test/suites/datatype_p0/double/test_double_nan.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,10 @@ suite("test_double_nan", "datatype_p0") {
sql "DROP TABLE IF EXISTS ${tableName}"
sql "CREATE TABLE if NOT EXISTS ${tableName} (k int, value double) DUPLICATE KEY(k) DISTRIBUTED BY HASH (k) BUCKETS 1 PROPERTIES ('replication_num' = '1');"

test {
sql """insert into ${tableName} select 1, sqrt(-1);"""
exception "errCode"
}
sql """insert into ${tableName} select 1, sqrt(-1);"""

qt_select "select * from ${tableName} order by 1;"
test {
sql "select sqrt(-1);"
exception "errCode"
}
qt_select "select sqrt(-1);"

sql "DROP TABLE IF EXISTS ${tableName}"
}
10 changes: 2 additions & 8 deletions regression-test/suites/datatype_p0/float/test_float_nan.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,10 @@ suite("test_float_nan", "datatype_p0") {
def tableName = "tbl_test_float_nan"
sql "DROP TABLE IF EXISTS ${tableName}"
sql "CREATE TABLE if NOT EXISTS ${tableName} (k int, value float) DUPLICATE KEY(k) DISTRIBUTED BY HASH (k) BUCKETS 1 PROPERTIES ('replication_num' = '1');"
test {
sql """insert into ${tableName} select 1, sqrt(-1);"""
exception "errCode"
}
sql """insert into ${tableName} select 1, sqrt(-1);"""

qt_select "select * from ${tableName} order by 1;"
test {
sql "select sqrt(-1);"
exception "errCode"
}
qt_select "select sqrt(-1);"

sql "DROP TABLE IF EXISTS ${tableName}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ suite("nereids_scalar_fn_A") {
qt_sql_abs_DecimalV2_notnull "select abs(kdcmls1) from fn_test_not_nullable order by kdcmls1"
qt_sql_acos_Double "select acos(kdbl) from fn_test order by kdbl"
qt_sql_acos_Double_notnull "select acos(kdbl) from fn_test_not_nullable order by kdbl"
test {
sql "select acos(cast(1.1 as double))"
exception "errCode"
}
qt_sql_acos_Double_NAN "select acos(cast(1.1 as double))"
qt_sql_acos_Double_NULL "select acos(null)"
sql "select aes_decrypt(kvchrs1, kvchrs1) from fn_test order by kvchrs1, kvchrs1"
sql "select aes_decrypt(kvchrs1, kvchrs1) from fn_test_not_nullable order by kvchrs1, kvchrs1"
Expand Down

0 comments on commit c58460f

Please sign in to comment.