Open jd-zhang opened 3 years ago
The other issue is for division/0.0:
SELECT '' AS bad, f.f1 / '0.0' from FLOAT4_TBL f; bad ?column? It just returns empty result, but for official pg, it gives error: ERROR: division by zero
fixed in revision 8ed766394f0e2189cebccc69d2762fda8d3118b7
Replying to [comment:1 winter]: This is how mysql handles division by 0 error --- the result is NULL. we have to follow mysql's convention.
The other issue is for division/0.0:
SELECT '' AS bad, f.f1 / '0.0' from FLOAT4_TBL f; bad ?column? It just returns empty result, but for official pg, it gives error: ERROR: division by zero
numeric VS float4/8 comparison in pg is counter intuition and counter commonsense, because the
SELECT AS one, f.* FROM FLOAT4_TBL f WHERE f.f1 = 1004.3;
query is expected to return no rows. needs further investigation.
Issue migrated from trac ticket # 94
component: computing nodes | priority: major
2021-06-11 11:54:43: @jd-zhang created the issue