cloud-fan commented on code in PR #36408:
URL: https://github.com/apache/spark/pull/36408#discussion_r867743145
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala:
##########
@@ -2342,3 +2342,29 @@ case class UpCast(child: Expression, target:
AbstractDataType, walkedTypePath: S
override protected def withNewChildInternal(newChild: Expression): UpCast =
copy(child = newChild)
}
+
+/**
+ * Unwrap UDT data type column into its underlying struct type
+ */
+case class UnwrapUDT(child: Expression) extends UnaryExpression with
NonSQLExpression {
Review Comment:
can we move it to a new file?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]