Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-32214

The type conversion function generated in makeFromJava for "other" type uses a wrong variable.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.6, 3.0.0, 3.1.0
    • 2.4.7, 3.0.1, 3.1.0
    • SQL
    • None

    Description

      `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.

      case other => (obj: Any) => nullSafeConvert(other)(PartialFunction.empty) 

      Attachments

        Activity

          People

            sarutak Kousuke Saruta
            sarutak Kousuke Saruta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: