GitHub user gatorsmile opened a pull request:

    https://github.com/apache/spark/pull/17626

    [SPARK-20315] [SQL] Set ScalaUDF's deterministic to true 

    ### What changes were proposed in this pull request?
    ScalaUDF is always assumed to deterministic, based on the previous 
discussion in https://github.com/apache/spark/pull/13087. However, the current 
master still sets it based on the children's deterministic values. 
    
    This PR is to correct it by always setting it to true, even if the 
children's deterministic values are not true.
    
    ### How was this patch tested?
    Added a test case.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gatorsmile/spark nonDeterministicScalaUDF

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/17626.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #17626
    
----
commit 39abf22f4257acd564f0f29a551751c8a35018d7
Author: Xiao Li <[email protected]>
Date:   2017-04-13T00:28:31Z

    fix.

commit 4e59b6715475313653efe1d21f1a2ec270ccfd5a
Author: Xiao Li <[email protected]>
Date:   2017-04-13T00:40:55Z

    correct it

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to