[ 
https://issues.apache.org/jira/browse/SPARK-13263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15211047#comment-15211047
 ] 

Ruslan Dautkhanov commented on SPARK-13263:
-------------------------------------------

Would Spark support deterministic sampling too?

{quote}set hive.sample.seednumber=123451231;
SELECT *
FROM table_a TABLESAMPLE(BUCKET 17 OUT OF 25 ON individual_id);{quote}

Notice sampling is based on a hash(individual_id).

> SQL generation support for tablesample
> --------------------------------------
>
>                 Key: SPARK-13263
>                 URL: https://issues.apache.org/jira/browse/SPARK-13263
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Xiao Li
>            Assignee: Xiao Li
>             Fix For: 2.0.0
>
>
> {code}
> SELECT s.id FROM t0 TABLESAMPLE(0.1 PERCENT) s
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to