NaN values are converted to SQL NULLs