Uh oh!
There was an error while loading. Please reload this page.
[SPARK-6040][SQL] Fix the percent bug in tablesample - #4789
Conversation
AmplabJenkins
commented
Feb 26, 2015
Can one of the admins verify this patch? |
yhuai
commented
Feb 26, 2015
test this please |
SparkQA
commented
Feb 26, 2015
Test build #28014 has started for PR 4789 at commit
|
SparkQA
commented
Feb 26, 2015
Test build #28014 has finished for PR 4789 at commit
|
AmplabJenkins
commented
Feb 26, 2015
Test FAILed. |
scwf
commented
Feb 27, 2015
test this please |
watermen
commented
Mar 2, 2015
@yhuai Can you trigger the test for me? |
chenghao-intel
commented
Mar 2, 2015
retest this please |
yhuai
commented
Mar 2, 2015
ok to test |
SparkQA
commented
Mar 2, 2015
Test build #28153 has started for PR 4789 at commit
|
SparkQA
commented
Mar 2, 2015
Test build #28153 has finished for PR 4789 at commit
|
AmplabJenkins
commented
Mar 2, 2015
Test PASSed. |
There was a problem hiding this comment.
How about "The range of fraction accepted by Sample is [0, 1]. Because Hive's block sampling function takes X PERCENT as the input and the range of X is [0, 100], we need to adjust the fraction."?
There was a problem hiding this comment.
@yhuai Thanks for you help and I had done it.
SparkQA
commented
Mar 2, 2015
Test build #28160 has started for PR 4789 at commit
|
SparkQA
commented
Mar 2, 2015
Test build #28160 has finished for PR 4789 at commit
|
AmplabJenkins
commented
Mar 2, 2015
Test PASSed. |
There was a problem hiding this comment.
I'm going to go ahead and merge this since it changes semantics and we are close to the release where we remove the alpha tag, but it would be great if you could add a test that actually checks to make sure sampling is happening and we are getting something close to the expected number of results.
HiveQL expression like `select count(1) from src tablesample(1 percent);` means take 1% sample to select. But it means 100% in the current version of the Spark. Author: q00251598 <qiyadong@huawei.com> Closes#4789 from watermen/SPARK-6040 and squashes the following commits: 2453ebe [q00251598] check and adjust the fraction. (cherry picked from commit 582e5a2) Signed-off-by: Michael Armbrust <michael@databricks.com>
HiveQL expression like
select count(1) from src tablesample(1 percent);means take 1% sample to select. But it means 100% in the current version of the Spark.