ulysses-you commented on a change in pull request #29244:
URL: https://github.com/apache/spark/pull/29244#discussion_r460660781
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/types/NullType.scala
##########
@@ -32,6 +32,8 @@ class NullType private() extends DataType {
override def defaultSize: Int = 1
private[spark] override def asNullable: NullType = this
+
+ override def sql: String = "VOID"
Review comment:
Just consider that simpleString/catalogString is a name of spark, and
sql is used in other database ? We can still show something like `unknown` with
`NullType`, If we can divide this.
I'm not sure the sql original meaning, but it seems used for Hive DDL e.g.,
`StructType.toDDL` use sql to build DDL string.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]