You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/06/16 13:29:05 UTC

[jira] [Resolved] (SPARK-12125) pull out nondeterministic expressions from Join

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

Sean Owen resolved SPARK-12125.
-------------------------------
    Resolution: Won't Fix

> pull out nondeterministic expressions from Join
> -----------------------------------------------
>
>                 Key: SPARK-12125
>                 URL: https://issues.apache.org/jira/browse/SPARK-12125
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.5.2
>            Reporter: iward
>            Priority: Minor
>
> Currently,*nondeterministic expressions* are only allowed in *Project* or *Filter*,And only when we use nondeterministic expressions in *UnaryNode* can be pulled out.
> But,Sometime in many case,we will use nondeterministic expressions to process *join keys* avoiding data skew.for example:
> {noformat}
> select * 
> from tableA a 
> join 
> (select * from tableB) b 
> on upper((case when (a.brand_code is null or a.brand_code = '' ) then cast( (-rand() * 10000000 ) as string ) else a.brand_code end ))  = b.brand_code
> {noformat}
> This PR introduce a mechanism to pull out nondeterministic expressions from *Join*,so we can use nondeterministic expression in *Join* appropriately.



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

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