{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/20503","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/20503/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/20503/comments","events_url":"https://api.github.com/repos/apache/spark/issues/20503/events","html_url":"https://github.com/apache/spark/pull/20503","id":294190326,"node_id":"MDExOlB1bGxSZXF1ZXN0MTY3MDA2MDE3","number":20503,"title":"[SPARK-23299][SQL][PYSPARK] Fix __repr__ behaviour for Rows.","user":{"login":"ashashwat","id":121233,"node_id":"MDQ6VXNlcjEyMTIzMw==","avatar_url":"https://avatars2.githubusercontent.com/u/121233?v=4","gravatar_id":"","url":"https://api.github.com/users/ashashwat","html_url":"https://github.com/ashashwat","followers_url":"https://api.github.com/users/ashashwat/followers","following_url":"https://api.github.com/users/ashashwat/following{/other_user}","gists_url":"https://api.github.com/users/ashashwat/gists{/gist_id}","starred_url":"https://api.github.com/users/ashashwat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashashwat/subscriptions","organizations_url":"https://api.github.com/users/ashashwat/orgs","repos_url":"https://api.github.com/users/ashashwat/repos","events_url":"https://api.github.com/users/ashashwat/events{/privacy}","received_events_url":"https://api.github.com/users/ashashwat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2018-02-04T11:33:42Z","updated_at":"2018-10-22T12:40:53Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/20503","html_url":"https://github.com/apache/spark/pull/20503","diff_url":"https://github.com/apache/spark/pull/20503.diff","patch_url":"https://github.com/apache/spark/pull/20503.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nFix \\_\\_repr\\_\\_ behaviour for Rows.\r\n\r\nRows \\_\\_repr\\_\\_ assumes data is a string when column name is missing.\r\nExamples,\r\n```\r\n>>> from pyspark.sql.types import Row\r\n>>> Row (\"Alice\", \"11\")\r\n<Row(Alice, 11)>\r\n\r\n>>> Row (name=\"Alice\", age=11)\r\nRow(age=11, name='Alice')\r\n\r\n>>> Row (\"Alice\", 11)\r\n<snip stack trace>\r\nTypeError: sequence item 1: expected string, int found\r\n```\r\n\r\nThis is because Row () when called without column names assumes\r\neverything is a string.\r\n\r\n## How was this patch tested?\r\n\r\nManually tested and unittest was added in `python/pyspark/sql/tests.py`."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/431823709","html_url":"https://github.com/apache/spark/pull/20503#issuecomment-431823709","issue_url":"https://api.github.com/repos/apache/spark/issues/20503","id":431823709,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTgyMzcwOQ==","user":{"login":"AmplabJenkins","id":4031291,"node_id":"MDQ6VXNlcjQwMzEyOTE=","avatar_url":"https://avatars3.githubusercontent.com/u/4031291?v=4","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2018-10-22T12:40:53Z","updated_at":"2018-10-22T12:40:53Z","author_association":"NONE","body":"Can one of the admins verify this patch?"}}
{"actor":{"display_login":"AmplabJenkins"}}