Kristin Cowalcijk created SEDONA-580: ----------------------------------------
Summary: New instances of RasterUDT object is not equal to the RasterUDT case object Key: SEDONA-580 URL: https://issues.apache.org/jira/browse/SEDONA-580 Project: Apache Sedona Issue Type: Bug Affects Versions: 1.6.0 Reporter: Kristin Cowalcijk This issue is similar to [SEDONA-20|https://issues.apache.org/jira/browse/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. -- This message was sent by Atlassian Jira (v8.20.10#820010)