[ https://issues.apache.org/jira/browse/SPARK-30791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Weichen Xu updated SPARK-30791: ------------------------------- Description: Sometimes, we want to check whether two dataframes are the same. There is already an internal API like: {code:java} df1.queryExecution.logical.sameResult(...) {code} We can make a public API for this: Like: {code:java} df1.sameResult(df2) // return true if dataframe will return the same result df1.semanticHash // return a semantic hashcode, if the two dataframes will return the same results, their semantic hashcodes should be the same.{code} CC [~cloud_fan] [~mengxr] [~liangz] was: Sometimes, we want to check whether two dataframe is the same. There is already an internal API like: {code:java} df1.queryExecution.logical.sameResult(...) {code} We can make a public API for this: Like: {code:java} df1.sameResult(df2) // return true if dataframe will return the same result df1.semanticHash // return a semantic hashcode, if the two dataframe will return the same result, their semantic hashcode should be the same.{code} CC [~cloud_fan] [~mengxr] [~liangz] > Dataframe add sameResult and sementicHash method > ------------------------------------------------ > > Key: SPARK-30791 > URL: https://issues.apache.org/jira/browse/SPARK-30791 > Project: Spark > Issue Type: New Feature > Components: ML, SQL > Affects Versions: 3.0.0 > Reporter: Weichen Xu > Assignee: Liang Zhang > Priority: Major > > Sometimes, we want to check whether two dataframes are the same. > There is already an internal API like: > {code:java} > df1.queryExecution.logical.sameResult(...) {code} > We can make a public API for this: > Like: > {code:java} > df1.sameResult(df2) // return true if dataframe will return the same result > df1.semanticHash // return a semantic hashcode, if the two dataframes will > return the same results, their semantic hashcodes should be the same.{code} > CC [~cloud_fan] [~mengxr] [~liangz] > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org