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

Yeah, `void` is better :+1: