GitHub user liancheng opened a pull request:

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

    [SPARK-12799] Simplify various string output for expressions

    This PR introduces two major changes:
    
    1. Replacing `Expression.prettyString` with `Expression.sql`
    2. Adding trait `NonSQLExpression` extending from `Expression` for 
expressions that don't have a SQL representation (e.g. Scala UDF/UDAF and 
Java/Scala object expressions used for encoders)
    
       `NonSQLExpression.sql` may return an arbitrary user facing string 
representation of the expression.

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

    $ git pull https://github.com/liancheng/spark 
spark-12799.simplify-expression-string-methods

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

    https://github.com/apache/spark/pull/10757.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 #10757
    
----
commit 072d0e4562131e50b0256cbcc488cbace5618968
Author: Cheng Lian <[email protected]>
Date:   2016-01-14T18:26:14Z

    Replaces Expression.prettyString with Expression.sql

commit 1e01b25e4f84e3a9416bc05281c721c657ac36c6
Author: Cheng Lian <[email protected]>
Date:   2016-01-14T18:58:17Z

    Fixes Catalyst test failures

commit f71328508f87fc84678de4a12a8470a129044f0a
Author: Cheng Lian <[email protected]>
Date:   2016-01-14T19:36:38Z

    SQLBuilder should reject logical plans containing s

----


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