[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:
parent
3508ce8a5a
commit
f315fb7efc
|
@ -213,6 +213,8 @@ private[hive] trait HiveInspectors {
|
||||||
case _: JavaHiveDecimalObjectInspector => DecimalType
|
case _: JavaHiveDecimalObjectInspector => DecimalType
|
||||||
case _: WritableTimestampObjectInspector => TimestampType
|
case _: WritableTimestampObjectInspector => TimestampType
|
||||||
case _: JavaTimestampObjectInspector => TimestampType
|
case _: JavaTimestampObjectInspector => TimestampType
|
||||||
|
case _: WritableVoidObjectInspector => NullType
|
||||||
|
case _: JavaVoidObjectInspector => NullType
|
||||||
}
|
}
|
||||||
|
|
||||||
implicit class typeInfoConversions(dt: DataType) {
|
implicit class typeInfoConversions(dt: DataType) {
|
||||||
|
|
Loading…
Reference in a new issue