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

UserDefinedType.equal() does not have symmetry

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.1, 2.2.0, 2.3.0, 2.4.0, 3.0.0
    • Fix Version/s: 2.4.8, 3.0.2, 3.1.0
    • Component/s: SQL
    • Labels:
      None

      Description

      ExampleSubTypeUDT.userClass is a subclass of ExampleBaseTypeUDT.userClass
      val udt1 = new ExampleBaseTypeUDT
      val udt2 = new ExampleSubTypeUDT
      println(udt1 == udt2) // true
      println(udt2 == udt1) // false

        Attachments

          Activity

            People

            • Assignee:
              Ngone51 wuyi
              Reporter:
              Ngone51 wuyi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: