Currently when a scalar function returns a null entry factory will create a string_entry with FROM_NULL metadata. Schema validators needs to respect that.