Skip to content

Commit ecc6595

Browse files
vladimirg-dbHyukjinKwon
authored andcommitted
[SPARK-51535][SQL] Don't compare hash codes directly in ProtobufCatalystDataConversionSuite
### What changes were proposed in this pull request? Don't compare hash codes directly in `ProtobufCatalystDataConversionSuite` A followup for #50295 ### Why are the changes needed? `hashCode` implementations are not guaranteed to be the same across different JVMs and platforms. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? `build/sbt "testOnly org.apache.spark.sql.protobuf.ProtobufCatalystDataConversionSuite -- -z \"hash\""` ### Was this patch authored or co-authored using generative AI tooling? No. Closes #50298 from vladimirg-db/vladimir-golubev_data/fix-protobuf-failed-tests-2. Authored-by: Vladimir Golubev <vladimir.golubev@databricks.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
1 parent 8550b44 commit ecc6595

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

connector/protobuf/src/test/scala/org/apache/spark/sql/protobuf/ProtobufCatalystDataConversionSuite.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,6 @@ class ProtobufCatalystDataConversionSuite
380380
Map("mode" -> "PERMISSIVE")
381381
)
382382

383-
assert(
384-
protobufDataToCatalyst.hashCode == -937893175
385-
)
386383
assert(
387384
protobufDataToCatalyst
388385
.copy(options = Map("mode" -> "FAILFAST"))

0 commit comments

Comments
 (0)