[fix](Nereids) check avg in correctness_p0 (#25533)

This commit is contained in:
谢健
2023-10-20 14:12:06 +08:00
committed by GitHub
parent d0cd535cb9
commit 5d7e804a61
2 changed files with 11 additions and 3 deletions

View File

@ -1,6 +1,12 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !select --
9.18181818181868E14
-- !sum --
90900000000004950
-- !count --
99
-- !avg --
9.181818181818681E14
-- !select2 --
\N \N

View File

@ -37,7 +37,9 @@ suite("test_avg") {
for (i in range(1, 100)) {
sql """ INSERT INTO ${tableName} values (10000000000000${i}) """
}
qt_select """ SELECT AVG(c_bigint) FROM ${tableName} """
qt_sum """ SELECT SUM(c_bigint) FROM ${tableName} """
qt_count """ SELECT COUNT(c_bigint) FROM ${tableName} """
qt_avg """ SELECT AVG(c_bigint) FROM ${tableName} """
sql""" DROP TABLE IF EXISTS ${tableName} """