GitHub user rxin opened a pull request:

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

    [SPARK-8770][SQL] Create BinaryOperator abstract class. 

    Our current BinaryExpression abstract class is not for generic binary 
expressions, i.e. it requires left/right children to have the same type. 
However, due to its name, contributors build new binary expressions that don't 
have that assumption (e.g. Sha) and still extend BinaryExpression.
    
    This patch creates a new BinaryOperator abstract class, and update the 
analyzer o only apply type casting rule there. This patch also adds the notion 
of "prettyName" to expressions, which defines the user-facing name for the 
expression.
    


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

    $ git pull https://github.com/rxin/spark binary-opterator

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

    https://github.com/apache/spark/pull/7174.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 #7174
    
----
commit d8518cfb7d9ccfbf26ef4875f70d7bc1434464d6
Author: Reynold Xin <[email protected]>
Date:   2015-07-02T02:27:38Z

    Updated Python tests.

----


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