-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPARK-3329: [SQL] Don't depend on Hive SET pair ordering. #2220
Conversation
ok to test |
QA tests have started for PR 2220 at commit
|
Ah, so this problem was fixed in PR #1514, but it seems like this later PR reverted the change accidentally. I think it'd be good to re-adapt 1514's solution. /cc @aarondav @liancheng |
Thanks, @concretevitamin! |
QA tests have finished for PR 2220 at commit
|
Result may not be returned in the expected order, so relax that constraint. Author: Aaron Davidson <aaron@databricks.com> Closes apache#1514 from aarondav/flakey and squashes the following commits: e5af823 [Aaron Davidson] Fix flakey HiveQuerySuite test Conflicts: sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
@concretevitamin I cherry-picked @aarondav's fix (and added a very simple fix to handle cases that it didn't). |
QA tests have started for PR 2220 at commit
|
QA tests have finished for PR 2220 at commit
|
rdd.collect().map { | ||
case Row(key: String, value: String) => key -> value | ||
case Row(kv: String) => kv match { | ||
case KV(key, value) => key -> value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor style nit: this could just be: case Row(KV(key,value)) => ...
I believe.
Hey @willb, thanks for looking into / fixing this! Minor pattern matching suggestion only. |
QA tests have started for PR 2220 at commit
|
QA tests have finished for PR 2220 at commit
|
This failure (in |
QA tests have started for PR 2220 at commit
|
Tests timed out after a configured wait of |
Thanks for cleaning this up! Since this passed tests before I'm going to merge to master. |
@marmbrus @liancheng Can we backport this into |
This fixes some possible spurious test failures in
HiveQuerySuite
by comparing sets of key-value pairs as sets, rather than as lists.