File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
sql/core/src/main/scala/org/apache/spark/sql Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,16 @@ package object sql {
263
263
@ DeveloperApi
264
264
val ShortType = catalyst.types.ShortType
265
265
266
+ /**
267
+ * :: DeveloperApi ::
268
+ *
269
+ * The data type representing `NULL` values.
270
+ *
271
+ * @group dataType
272
+ */
273
+ @ DeveloperApi
274
+ val NullType = catalyst.types.NullType
275
+
266
276
/**
267
277
* :: DeveloperApi ::
268
278
*
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ protected[sql] object DataTypeConversions {
62
62
case IntegerType => JDataType .IntegerType
63
63
case LongType => JDataType .LongType
64
64
case ShortType => JDataType .ShortType
65
+ case NullType => JDataType .StringType
65
66
66
67
case arrayType : ArrayType => JDataType .createArrayType(
67
68
asJavaDataType(arrayType.elementType), arrayType.containsNull)
You can’t perform that action at this time.
0 commit comments