NULL values in columns with a numeric type (all of int8, int16 etc, single, double) are returned as 0. This is due to a bug/quirk of the Osisoft PI JDBC driver, which is hard-coded to return false from the wasNull method. See JIRA for details