{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/21620","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/21620/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/21620/comments","events_url":"https://api.github.com/repos/apache/spark/issues/21620/events","html_url":"https://github.com/apache/spark/pull/21620","id":335088132,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2ODk0Mjgw","number":21620,"title":"[SPARK-24636][SQL] Type coercion of arrays for array_join function","user":{"login":"mn-mikke","id":3674621,"node_id":"MDQ6VXNlcjM2NzQ2MjE=","avatar_url":"https://avatars3.githubusercontent.com/u/3674621?v=4","gravatar_id":"","url":"https://api.github.com/users/mn-mikke","html_url":"https://github.com/mn-mikke","followers_url":"https://api.github.com/users/mn-mikke/followers","following_url":"https://api.github.com/users/mn-mikke/following{/other_user}","gists_url":"https://api.github.com/users/mn-mikke/gists{/gist_id}","starred_url":"https://api.github.com/users/mn-mikke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mn-mikke/subscriptions","organizations_url":"https://api.github.com/users/mn-mikke/orgs","repos_url":"https://api.github.com/users/mn-mikke/repos","events_url":"https://api.github.com/users/mn-mikke/events{/privacy}","received_events_url":"https://api.github.com/users/mn-mikke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-06-23T10:19:37Z","updated_at":"2018-06-26T01:51:30Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/21620","html_url":"https://github.com/apache/spark/pull/21620","diff_url":"https://github.com/apache/spark/pull/21620.diff","patch_url":"https://github.com/apache/spark/pull/21620.patch"},"body":"## What changes were proposed in this pull request?\r\nPresto's implementation accepts arbitrary arrays of primitive types as an input:\r\n\r\n```\r\npresto> SELECT array_join(ARRAY [1, 2, 3], ', ');\r\n_col0\r\n---------\r\n1, 2, 3\r\n(1 row)\r\n```\r\n\r\nThis PR proposes to implement a type coercion rule for ```array_join``` function that converts arrays of primitive as well as non-primitive types to arrays of string.  \r\n\r\n## How was this patch tested?\r\n\r\nNew test cases add into:\r\n- sql-tests/inputs/typeCoercion/native/arrayJoin.sql\r\n- DataFrameFunctionsSuite.scala\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/400151138","html_url":"https://github.com/apache/spark/pull/21620#issuecomment-400151138","issue_url":"https://api.github.com/repos/apache/spark/issues/21620","id":400151138,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDE1MTEzOA==","user":{"login":"HyukjinKwon","id":6477701,"node_id":"MDQ6VXNlcjY0Nzc3MDE=","avatar_url":"https://avatars0.githubusercontent.com/u/6477701?v=4","gravatar_id":"","url":"https://api.github.com/users/HyukjinKwon","html_url":"https://github.com/HyukjinKwon","followers_url":"https://api.github.com/users/HyukjinKwon/followers","following_url":"https://api.github.com/users/HyukjinKwon/following{/other_user}","gists_url":"https://api.github.com/users/HyukjinKwon/gists{/gist_id}","starred_url":"https://api.github.com/users/HyukjinKwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyukjinKwon/subscriptions","organizations_url":"https://api.github.com/users/HyukjinKwon/orgs","repos_url":"https://api.github.com/users/HyukjinKwon/repos","events_url":"https://api.github.com/users/HyukjinKwon/events{/privacy}","received_events_url":"https://api.github.com/users/HyukjinKwon/received_events","type":"User","site_admin":false},"created_at":"2018-06-26T01:51:30Z","updated_at":"2018-06-26T01:51:30Z","author_association":"MEMBER","body":"Merged to master."}}
{"actor":{"display_login":"HyukjinKwon"}}