Github user viirya commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13778#discussion_r68879222
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala
 ---
    @@ -349,11 +349,12 @@ object MapObjects {
       def apply(
           function: Expression => Expression,
           inputData: Expression,
    -      elementType: DataType): MapObjects = {
    +      elementType: DataType,
    +      inputDataType: Option[DataType] = None): MapObjects = {
    --- End diff --
    
    At most scenarios, we don't need to specify inputDataType. So I think it is 
indeed the obvious value. I agreed that the use of option here is not good. I 
will change it and have it documented.
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to