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

UserDefinedType.equal() does not have symmetry

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.1, 2.2.0, 2.3.0, 2.4.0, 3.0.0
    • 2.4.8, 3.0.2, 3.1.0
    • SQL
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: