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

Actually this is what Hive return by executing "explain select null from src limit 1".