[SPARK-3705][SQL] Add case for VoidObjectInspector to cover NullType

add case for VoidObjectInspector in ```inspectorToDataType```

Author: scwf <wangfei1@huawei.com>

Closes #2552 from scwf/inspectorToDataType and squashes the following commits:

453d892 [scwf] add case for VoidObjectInspector
This commit is contained in:
scwf 2014-10-01 15:55:09 -07:00 committed by Michael Armbrust
parent 3508ce8a5a
commit f315fb7efc

View file

@ -213,6 +213,8 @@ private[hive] trait HiveInspectors {
case _: JavaHiveDecimalObjectInspector => DecimalType
case _: WritableTimestampObjectInspector => TimestampType
case _: JavaTimestampObjectInspector => TimestampType
case _: WritableVoidObjectInspector => NullType
case _: JavaVoidObjectInspector => NullType
}
implicit class typeInfoConversions(dt: DataType) {