我在RedShift中运行两个等效的查询,我得到两个不同的结果:
SELECT 'NaN'::double precision as nan
intersect
SELECT 'NaN'::double precision as nan;
返回1条记录:NaN
SELECT 'NaN'::double precision as nan
into #temp;
select *
FROM #temp
intersect
select *
FROM #temp
返回零记录
有没有人理解为什么RedShift在从表中返回NaN时会有什么不同,而不仅仅是内联SELECT语句?