You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kousuke Saruta (Jira)" <ji...@apache.org> on 2020/07/07 22:00:00 UTC

[jira] [Created] (SPARK-32214) The type conversion function generated in makeFromJava for "other" type uses a wrong variable.

Kousuke Saruta created SPARK-32214:
--------------------------------------

             Summary: The type conversion function generated in makeFromJava for "other"  type uses a wrong variable.
                 Key: SPARK-32214
                 URL: https://issues.apache.org/jira/browse/SPARK-32214
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.0.0, 2.4.6, 3.1.0
            Reporter: Kousuke Saruta
            Assignee: Kousuke Saruta


`makeFromJava` in `EvaluatePython` create a type conversion function for some Java/Scala types.

For `other` type, the parameter of the type conversion function is named `obj` but `other` is mistakenly used rather than `obj` in the function body.
{code:java}
case other => (obj: Any) => nullSafeConvert(other)(PartialFunction.empty) {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org