viirya commented on a change in pull request #23916:
[SPARK-22000][SQL][FOLLOWUP] Add comment and simple cleanup to
DeserializerBuildHelper
URL: https://github.com/apache/spark/pull/23916#discussion_r261048760
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/DeserializerBuildHelper.scala
##########
@@ -44,25 +44,38 @@ object DeserializerBuildHelper {
upCastToExpectedType(newPath, dataType, walkedTypePath)
}
+ /**
+ * Returns an expression that can be used to deserialize input expression.
+ *
+ * @param expr The input expression that can be used to extract serialized
value.
+ * @param nullable Whether deserialized expression evalutes to null value.
+ * @param walkedTypePath The paths from top to bottom to access current
field when deserializing.
+ * @param funcForCreatingDeserializer Given input expression and typed path,
this function
+ * returns deserializer expression.
+ */
def deserializerForWithNullSafety(
expr: Expression,
- dataType: DataType,
Review comment:
`dataType` is useless here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]