GitHub user liancheng opened a pull request:

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

    [SPARK-6444] [SQL] A quick fix for SPARK-6444

    As explained in the JIRA ticket [comment] [1], this PR introduces a simple 
quick fix for SPARK-6444. The root cause of this issue is that we don't check 
data types of input arguments for SQL functions. PR #4685 is heading the right 
direction. The reason why moving `PromoteStrings` before `WidenTypes` fixes 
this issue is that, `PromoteStrings` helps `Sum` to check and convert the data 
type of its argument.
    
    [1]: 
https://issues.apache.org/jira/browse/SPARK-6444?focusedCommentId=14374838&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14374838

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

    $ git pull https://github.com/liancheng/spark spark-6444-quick-fix

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

    https://github.com/apache/spark/pull/5127.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 #5127
    
----
commit cd8f77819f11000ff316aef6e61ce46d02ac4d16
Author: Cheng Lian <[email protected]>
Date:   2015-03-22T10:36:00Z

    A quick fix for SPARK-6444

----


---
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