{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/16057","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/16057/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/16057/comments","events_url":"https://api.github.com/repos/apache/spark/issues/16057/events","html_url":"https://github.com/apache/spark/pull/16057","id":192241711,"number":16057,"title":"[SPARK-18624][SQL] Implicit cast ArrayType(InternalType)","user":{"login":"jiangxb1987","id":4784782,"avatar_url":"https://avatars.githubusercontent.com/u/4784782?v=3","gravatar_id":"","url":"https://api.github.com/users/jiangxb1987","html_url":"https://github.com/jiangxb1987","followers_url":"https://api.github.com/users/jiangxb1987/followers","following_url":"https://api.github.com/users/jiangxb1987/following{/other_user}","gists_url":"https://api.github.com/users/jiangxb1987/gists{/gist_id}","starred_url":"https://api.github.com/users/jiangxb1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiangxb1987/subscriptions","organizations_url":"https://api.github.com/users/jiangxb1987/orgs","repos_url":"https://api.github.com/users/jiangxb1987/repos","events_url":"https://api.github.com/users/jiangxb1987/events{/privacy}","received_events_url":"https://api.github.com/users/jiangxb1987/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-11-29T10:21:04Z","updated_at":"2016-12-15T16:49:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/16057","html_url":"https://github.com/apache/spark/pull/16057","diff_url":"https://github.com/apache/spark/pull/16057.diff","patch_url":"https://github.com/apache/spark/pull/16057.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nCurrently `ImplicitTypeCasts` doesn't handle casts between `ArrayType`s, this is not convenient, we should add a rule to enable casting from `ArrayType(InternalType)` to `ArrayType(newInternalType)`.\r\n\r\nGoals:\r\n1. Add a rule to `ImplicitTypeCasts` to enable casting between `ArrayType`s;\r\n2. Simplify `Percentile` and `ApproximatePercentile`.\r\n\r\n## How was this patch tested?\r\n\r\nUpdated test cases in `TypeCoercionSuite`."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/267378553","html_url":"https://github.com/apache/spark/pull/16057#issuecomment-267378553","issue_url":"https://api.github.com/repos/apache/spark/issues/16057","id":267378553,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","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":"2016-12-15T16:49:25Z","updated_at":"2016-12-15T16:49:25Z","body":"Test PASSed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/70193/\nTest PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}