AVG( column ) returns NaN rather than Inf when column contains Inf #3922
Last updated: 2016-03-25 09:58:57 +0100
Date: 2016-02-12 02:22:35 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0
should the second result be NaN or Inf?
the result of MAX( ) appears to work
if the column contains both -Inf and also Inf, then i believe the column should return NaN
Steps to Reproduce:
dbGetQuery( con , "SELECT MIN( mpg ) , AVG( mpg ) , MAX( mpg ) FROM x" )
L2 = Inf, i think? but not sure if this is my R bias
Date: 2016-02-26 16:03:14 +0100
This is an instance of a bigger problem: SQL doesn't allow for Inf (+ or -) or NaN. And hence, MonetDB doesn't allow for those values either. The R interface is now a backdoor through which those values can be introduced to the MonetDB internals, which are not prepared to handle them. In other words, garbage in, garbage out.
Date: 2016-02-26 17:00:15 +0100
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=c3894dbe6e00
Date: 2016-03-25 09:58:57 +0100
Jul2015-SP3 has been released.
The text was updated successfully, but these errors were encountered: