UNION types numeric and text cannot be matched.

Explicitly cast null to numeric.