You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following queries have different results between gluten and vanilla
select a, stddev(b/c) from (select*fromvalues (1,2, 1), (1,3,0) as data(a,b,c)) group by a
select a, stddev(b) from (select*fromvalues (1,2, 1) as data(a,b,c)) group by a
vanilla's result is null, but gluten's result is NaN.
Spark version
None
Spark configurations
No response
System information
No response
Relevant logs
No response
The text was updated successfully, but these errors were encountered:
adding a post projections doesn't seem to make too much overhead.
f2386dc7dd0d :) select a, if(isNaN(dev), null, dev) from(select a, stddev_samp(b) as dev from (selectnumberas a , number % 111as b from numbers(10000000)) group by a) Format Null settings max_threads=1SELECT
a,
if(isNaN(dev), NULL, dev)
FROM
(
SELECT
a,
stddev_samp(b) AS dev
FROM
(
SELECTnumberAS a,
number % 111AS b
FROM numbers(10000000)
)
GROUP BY a
)
FORMAT `Null`
SETTINGS max_threads =1
Query id: 49a4b5ec-1be6-4f15-9332-f3e4f637aeb1
Ok.
0 rows inset. Elapsed: 1.240 sec. Processed 10.00 million rows, 80.00 MB (8.06 million rows/s., 64.49 MB/s.)
Peak memory usage: 769.10 MiB.
f2386dc7dd0d :) select a, stddev_samp(b) as dev from (selectnumberas a , number % 111as b from numbers(10000000)) group by a Format Null settings max_threads=1;
SELECT
a,
stddev_samp(b) AS dev
FROM
(
SELECTnumberAS a,
number % 111AS b
FROM numbers(10000000)
)
GROUP BY a
FORMAT `Null`
SETTINGS max_threads =1
Query id: cfcca2c4-a437-4f5b-99ac-a7cbc1c24a20
Ok.
0 rows inset. Elapsed: 1.235 sec. Processed 10.00 million rows, 80.00 MB (8.09 million rows/s., 64.76 MB/s.)
Peak memory usage: 769.10 MiB.
Backend
CH (ClickHouse)
Bug description
Following queries have different results between
gluten
andvanilla
vanilla
's result isnull
, butgluten
's result isNaN
.Spark version
None
Spark configurations
No response
System information
No response
Relevant logs
No response
The text was updated successfully, but these errors were encountered: