[SPARK-3531][SQL]select null from table would throw a MatchError

Also I don't actually know the answer here, but is there a `void` type or something we could use instead of `string`?