Uploaded image for project: 'Apache Sedona'
  1. Apache Sedona
  2. SEDONA-580

New instances of RasterUDT object is not equal to the RasterUDT case object

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.6.1

    Description

      This issue is similar to SEDONA-20. We have encountered errors caused by this when working with datasets aggregated using RS_Union_Aggr. The ExpressionEncoder will create new instances of registered UserDefinedType classes, so we have to make sure that such newly created instances are the same type as the RasterUDT case object, otherwise we'll see strange SQL analyze exceptions and type mismatches.

      We also found that the implementation of GeometryUDT.hashCode is not correct: objects that are equal with each other has different hash values. Although this is not causing problems for now but we'd better fix it.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kontinuation Kristin Cowalcijk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h