cloud-fan commented on code in PR #48962:
URL: https://github.com/apache/spark/pull/48962#discussion_r1860101366
##########
sql/api/src/main/scala/org/apache/spark/sql/types/DataType.scala:
##########
@@ -105,6 +105,32 @@ abstract class DataType extends AbstractDataType {
*/
private[spark] def existsRecursively(f: (DataType) => Boolean): Boolean =
f(this)
+ /**
+ * Recursively applies the provided partial function `f` to transform this
DataType tree.
+ */
+ private[spark] def transformRecursively(f: PartialFunction[DataType,
DataType]): DataType = {
Review Comment:
can we implement this similar to how `existsRecursively` is implemented?
--
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]