yaooqinn commented on a change in pull request #29303:
URL: https://github.com/apache/spark/pull/29303#discussion_r464165400
##########
File path:
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkGetColumnsOperation.scala
##########
@@ -126,12 +124,52 @@ private[hive] class SparkGetColumnsOperation(
HiveThriftServer2.eventManager.onStatementFinish(statementId)
}
+ /**
+ * For numeric and datetime types, it returns the default size of its
catalyst type
+ * For struct type, when its elements are fixed-size, the summation of all
element sizes will be
+ * returned.
+ * For array, map, string, and binaries, the column size is variable, return
null as unknown.
+ */
+ private def getColumnSize(typ: DataType): Option[Int] = typ match {
Review comment:
Hive does not return same result for each type
----------------------------------------------------------------
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]