In Snowflake, these queries output the same integer values, but with different decimal precisions. Is this behavior expected?
with cte (num) as
(select 2356 union all
select 3456 union all
select 9999)
select distinct avg(num) over()
from cte;
Outputs: 5270.333
with cte (num) as
(select 2356 union all
select 3456 union all
select 9999)
select avg(num)
from cte;
Outputs: 5270.333333