GitHub user xuejianbest opened a pull request:

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

    Fix the show method to display the wide character alignment problem

    before:
    +---+---------------------------+-------------+
    |id |中国                         |s2           |
    +---+---------------------------+-------------+
    |1  |ab                         |[a]          |
    |2  |null                       |[中国, abc]    |
    |3  |ab1                        |[hello world]|
    |4  |か行 きゃ(kya) きゅ(kyu) きょ(kyo) |[“中国]        |
    |5  |中国(你好)a                    |[“中(国), 312] |
    |6  |中国山(东)服务区                  |[“中(国)]      |
    |7  |中国山东服务区                    |[中(国)]       |
    |8  |                           |[中国]         |
    +---+---------------------------+-------------+
    
    after:
    +---+--------------------------+----------------+
    | id|                      中国|              s2|
    +---+--------------------------+----------------+
    |  1|                        ab|             [a]|
    |  2|                      null|     [中国, abc]|
    |  3|                       ab1|   [hello world]|
    |  4|か行 きゃ(kya) きゅ(kyu...|         [“中国]|
    |  5|             中国(你好)a|[“中(国), 312]|
    |  6|          中国山(东)服务区|      [“中(国)]|
    |  7|            中国山东服务区|        [中(国)]|
    |  8|                          |          [中国]|
    +---+--------------------------+----------------+
    
    ## What changes were proposed in this pull request?
    
    (Please fill in changes proposed in this fix)
    
    ## How was this patch tested?
    
    (Please explain how this patch was tested. E.g. unit tests, integration 
tests, manual tests)
    (If this patch involves UI changes, please attach a screenshot; otherwise, 
remove this)
    
    Please review http://spark.apache.org/contributing.html before opening a 
pull request.


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

    $ git pull https://github.com/xuejianbest/spark master

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

    https://github.com/apache/spark/pull/22048.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 #22048
    
----
commit 1b9b2e73b8637b8da15b790a06b08e8810fc75d9
Author: xuejianbest <384329882@...>
Date:   2018-08-09T03:11:04Z

    Fix the show method to display the wide character alignment problem
    
    before:
    +---+---------------------------+-------------+
    |id |中国                         |s2           |
    +---+---------------------------+-------------+
    |1  |ab                         |[a]          |
    |2  |null                       |[中国, abc]    |
    |3  |ab1                        |[hello world]|
    |4  |か行 きゃ(kya) きゅ(kyu) きょ(kyo) |[“中国]        |
    |5  |中国(你好)a                    |[“中(国), 312] |
    |6  |中国山(东)服务区                  |[“中(国)]      |
    |7  |中国山东服务区                    |[中(国)]       |
    |8  |                           |[中国]         |
    +---+---------------------------+-------------+
    
    after:
    +---+--------------------------+----------------+
    | id|                      中国|              s2|
    +---+--------------------------+----------------+
    |  1|                        ab|             [a]|
    |  2|                      null|     [中国, abc]|
    |  3|                       ab1|   [hello world]|
    |  4|か行 きゃ(kya) きゅ(kyu...|         [“中国]|
    |  5|             中国(你好)a|[“中(国), 312]|
    |  6|          中国山(东)服务区|      [“中(国)]|
    |  7|            中国山东服务区|        [中(国)]|
    |  8|                          |          [中国]|
    +---+--------------------------+----------------+

----


---

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

Reply via email to