You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2020/02/18 06:54:00 UTC
[jira] [Resolved] (SPARK-30847) Take productPrefix into account in
MurmurHash3.productHash
[ https://issues.apache.org/jira/browse/SPARK-30847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-30847.
---------------------------------
Fix Version/s: 3.0.0
Resolution: Fixed
Issue resolved by pull request 27601
[https://github.com/apache/spark/pull/27601]
> Take productPrefix into account in MurmurHash3.productHash
> ----------------------------------------------------------
>
> Key: SPARK-30847
> URL: https://issues.apache.org/jira/browse/SPARK-30847
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.4.5, 3.0.0
> Reporter: Hyukjin Kwon
> Assignee: Hyukjin Kwon
> Priority: Critical
> Fix For: 3.0.0
>
>
> See the issue in https://github.com/scala/bug/issues/10495 and fix https://github.com/scala/scala/pull/7648.
> Currently, different expressions with same children can produce the same hash as below:
> {code}
> scala> spark.range(1).selectExpr("id - 1").queryExecution.analyzed.semanticHash()
> res0: Int = -565572825
> scala> spark.range(1).selectExpr("id + 1").queryExecution.analyzed.semanticHash()
> res1: Int = -565572825
> {code}
> The reason seems to be it doesn't take the product's class itself
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org