GitHub user liancheng opened a pull request:

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

    [MINOR][SQL] Fix minor formatting issue of SortAggregateExec.toString

    ## What changes were proposed in this pull request?
    
    This PR fixes a minor formatting issue (missing space after comma) of 
`SorgAggregateExec.toString`.
    
    Before:
    
    ```
    SortAggregate(key=[a#76,b#77], functions=[max(c#78),min(c#78)], 
output=[a#76,b#77,max(c)#89,min(c)#90])
    +- *Sort [a#76 ASC, b#77 ASC], false, 0
       +- Exchange hashpartitioning(a#76, b#77, 200)
          +- SortAggregate(key=[a#76,b#77], 
functions=[partial_max(c#78),partial_min(c#78)], 
output=[a#76,b#77,max#99,min#100])
             +- *Sort [a#76 ASC, b#77 ASC], false, 0
                +- LocalTableScan <empty>, [a#76, b#77, c#78]
    ```
    
    After:
    
    ```
    SortAggregate(key=[a#76, b#77], functions=[max(c#78), min(c#78)], 
output=[a#76, b#77, max(c)#89, min(c)#90])
    +- *Sort [a#76 ASC, b#77 ASC], false, 0
       +- Exchange hashpartitioning(a#76, b#77, 200)
          +- SortAggregate(key=[a#76, b#77], functions=[partial_max(c#78), 
partial_min(c#78)], output=[a#76, b#77, max#99, min#100])
             +- *Sort [a#76 ASC, b#77 ASC], false, 0
                +- LocalTableScan <empty>, [a#76, b#77, c#78]
    ```
    
    ## How was this patch tested?
    
    Manually tested.

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

    $ git pull https://github.com/liancheng/spark 
fix-sort-based-agg-string-format

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

    https://github.com/apache/spark/pull/14480.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 #14480
    
----
commit 43081c582a212c2a8b7fc11bf60f738a4114e861
Author: Cheng Lian <[email protected]>
Date:   2016-08-03T13:42:17Z

    Fix minor formatting issue of SortAggregateExec.toString

----


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