-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-7438][Spark Core]Fixed validation of relativeSD in countApproxDistinct #5974
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
Conversation
|
Can one of the admins verify this patch? |
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.
Seems OK, in that it enforces the contract in the docs, and then avoids an error in a case that does not seem to be an error. @rxin do you have any thoughts on this one?
|
ok to test |
|
Merged build triggered. |
|
Merged build started. |
|
Test build #32107 has started for PR 5974 at commit |
|
Ah, I see these checks mirror those in I still favor it as it makes the Scala impls consistent. I wonder if Python should just check the same thing since the docs don't say it rejects relativeSD > 0.37 CC @davies |
|
Test build #32107 has finished for PR 5974 at commit
|
|
Merged build finished. Test PASSed. |
|
Test PASSed. |
|
Merged build triggered. |
|
Merged build started. |
|
Test build #32184 has started for PR 5974 at commit |
|
Removed relativeSD validation in python.Validation is done in scala |
|
Merged build triggered. |
|
Merged build started. |
|
Test build #32185 has started for PR 5974 at commit |
|
LGTM. |
|
Test build #32184 has finished for PR 5974 at commit
|
|
Merged build finished. Test FAILed. |
|
Test FAILed. |
|
Test build #32185 has finished for PR 5974 at commit
|
|
Merged build finished. Test FAILed. |
|
Test FAILed. |
|
Merged build triggered. |
|
Merged build started. |
|
Test build #32201 has started for PR 5974 at commit |
|
Test build #32201 has finished for PR 5974 at commit
|
|
Merged build finished. Test FAILed. |
|
Test FAILed. |
|
Merged build triggered. |
|
Merged build started. |
|
Test build #32212 has started for PR 5974 at commit |
|
Test build #32212 has finished for PR 5974 at commit
|
|
Merged build finished. Test PASSed. |
|
Test PASSed. |
|
This LGTM. Will leave it a day or two for comments, but the logic seems sound. this improves consistency, behavior vs docs, and avoids an avoidable error |
…oxDistinct Author: Vinod K C <vinod.kc@huawei.com> Closes #5974 from vinodkc/fix_countApproxDistinct_Validation and squashes the following commits: 3a3d59c [Vinod K C] Reverted removal of validation relativeSD<0.000017 799976e [Vinod K C] Removed testcase to assert IAE when relativeSD>3.7 8ddbfae [Vinod K C] Remove blank line b1b00a3 [Vinod K C] Removed relativeSD validation from python API,RDD.scala will do validation 122d378 [Vinod K C] Fixed validation of relativeSD in countApproxDistinct (cherry picked from commit dda6d9f) Signed-off-by: Sean Owen <sowen@cloudera.com>
…oxDistinct Author: Vinod K C <vinod.kc@huawei.com> Closes apache#5974 from vinodkc/fix_countApproxDistinct_Validation and squashes the following commits: 3a3d59c [Vinod K C] Reverted removal of validation relativeSD<0.000017 799976e [Vinod K C] Removed testcase to assert IAE when relativeSD>3.7 8ddbfae [Vinod K C] Remove blank line b1b00a3 [Vinod K C] Removed relativeSD validation from python API,RDD.scala will do validation 122d378 [Vinod K C] Fixed validation of relativeSD in countApproxDistinct
…oxDistinct Author: Vinod K C <vinod.kc@huawei.com> Closes apache#5974 from vinodkc/fix_countApproxDistinct_Validation and squashes the following commits: 3a3d59c [Vinod K C] Reverted removal of validation relativeSD<0.000017 799976e [Vinod K C] Removed testcase to assert IAE when relativeSD>3.7 8ddbfae [Vinod K C] Remove blank line b1b00a3 [Vinod K C] Removed relativeSD validation from python API,RDD.scala will do validation 122d378 [Vinod K C] Fixed validation of relativeSD in countApproxDistinct
…oxDistinct Author: Vinod K C <vinod.kc@huawei.com> Closes apache#5974 from vinodkc/fix_countApproxDistinct_Validation and squashes the following commits: 3a3d59c [Vinod K C] Reverted removal of validation relativeSD<0.000017 799976e [Vinod K C] Removed testcase to assert IAE when relativeSD>3.7 8ddbfae [Vinod K C] Remove blank line b1b00a3 [Vinod K C] Removed relativeSD validation from python API,RDD.scala will do validation 122d378 [Vinod K C] Fixed validation of relativeSD in countApproxDistinct
No description provided.