{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/22048","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/22048/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/22048/comments","events_url":"https://api.github.com/repos/apache/spark/issues/22048/events","html_url":"https://github.com/apache/spark/pull/22048","id":348964746,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3MTkxMzUy","number":22048,"title":"[SPARK-25108][SQL] Fix the show method to display the wide character alignment problem","user":{"login":"xuejianbest","id":13044869,"node_id":"MDQ6VXNlcjEzMDQ0ODY5","avatar_url":"https://avatars3.githubusercontent.com/u/13044869?v=4","gravatar_id":"","url":"https://api.github.com/users/xuejianbest","html_url":"https://github.com/xuejianbest","followers_url":"https://api.github.com/users/xuejianbest/followers","following_url":"https://api.github.com/users/xuejianbest/following{/other_user}","gists_url":"https://api.github.com/users/xuejianbest/gists{/gist_id}","starred_url":"https://api.github.com/users/xuejianbest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuejianbest/subscriptions","organizations_url":"https://api.github.com/users/xuejianbest/orgs","repos_url":"https://api.github.com/users/xuejianbest/repos","events_url":"https://api.github.com/users/xuejianbest/events{/privacy}","received_events_url":"https://api.github.com/users/xuejianbest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-08-09T03:31:58Z","updated_at":"2018-08-30T13:46:19Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/22048","html_url":"https://github.com/apache/spark/pull/22048","diff_url":"https://github.com/apache/spark/pull/22048.diff","patch_url":"https://github.com/apache/spark/pull/22048.patch"},"body":"This is not a perfect solution. It is designed to minimize complexity on the basis of solving problems.\r\n\r\nIt is effective for English, Chinese characters, Japanese, Korean and so on.\r\n\r\n```scala\r\nbefore:\r\n+---+---------------------------+-------------+\r\n|id |中国                         |s2           |\r\n+---+---------------------------+-------------+\r\n|1  |ab                         |[a]          |\r\n|2  |null                       |[中国, abc]    |\r\n|3  |ab1                        |[hello world]|\r\n|4  |か行 きゃ(kya) きゅ(kyu) きょ(kyo) |[“中国]        |\r\n|5  |中国（你好）a                    |[“中（国）, 312] |\r\n|6  |中国山(东)服务区                  |[“中(国）]      |\r\n|7  |中国山东服务区                    |[中(国)]       |\r\n|8  |                           |[中国]         |\r\n+---+---------------------------+-------------+\r\n\r\nafter:\r\n+---+-----------------------------------+----------------+\r\n|id |中国                               |s2              |\r\n+---+-----------------------------------+----------------+\r\n|1  |ab                                 |[a]             |\r\n|2  |null                               |[中国, abc]     |\r\n|3  |ab1                                |[hello world]   |\r\n|4  |か行 きゃ(kya) きゅ(kyu) きょ(kyo) |[“中国]         |\r\n|5  |中国（你好）a                      |[“中（国）, 312]|\r\n|6  |中国山(东)服务区                   |[“中(国）]      |\r\n|7  |中国山东服务区                     |[中(国)]        |\r\n|8  |                                   |[中国]          |\r\n+---+-----------------------------------+----------------+\r\n```\r\n\r\n## What changes were proposed in this pull request?\r\n\r\nWhen there are wide characters such as Chinese characters or Japanese characters in the data, the show method has a alignment problem. \r\nTry to fix this problem.\r\n\r\n## How was this patch tested?\r\n\r\n(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)\r\n\r\n![image](https://user-images.githubusercontent.com/13044869/44250564-69f6b400-a227-11e8-88b2-6cf6960377ff.png)\r\n\r\nPlease review http://spark.apache.org/contributing.html before opening a pull request.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/417325083","html_url":"https://github.com/apache/spark/pull/22048#issuecomment-417325083","issue_url":"https://api.github.com/repos/apache/spark/issues/22048","id":417325083,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzMyNTA4Mw==","user":{"login":"SparkQA","id":8108735,"node_id":"MDQ6VXNlcjgxMDg3MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/8108735?v=4","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2018-08-30T13:46:19Z","updated_at":"2018-08-30T13:46:19Z","author_association":"NONE","body":"**[Test build #4305 has started](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/4305/testReport)** for PR 22048 at commit [`3649de5`](https://github.com/apache/spark/commit/3649de50235cd19cfea2c3d88d1ccfb18ea8893a)."}}
{"actor":{"display_login":"SparkQA"}}