You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2022/07/13 06:07:00 UTC

[jira] [Assigned] (SPARK-39651) Prune filter condition if compare with rand is deterministic

     [ https://issues.apache.org/jira/browse/SPARK-39651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wenchen Fan reassigned SPARK-39651:
-----------------------------------

    Assignee: jiaan.geng

> Prune filter condition if compare with rand is deterministic
> ------------------------------------------------------------
>
>                 Key: SPARK-39651
>                 URL: https://issues.apache.org/jira/browse/SPARK-39651
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: jiaan.geng
>            Assignee: jiaan.geng
>            Priority: Major
>
> The SQL
> {code:java}
> SELECT * FROM tab WHERE rand(1) < 2
> {code}
> evaluate rand(1) < 2 for rows one by one.
> In fact, we can prune the filter condition.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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