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]