{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/16094","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/16094/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/16094/comments","events_url":"https://api.github.com/repos/apache/spark/issues/16094/events","html_url":"https://github.com/apache/spark/pull/16094","id":192744506,"number":16094,"title":"[SPARK-18541][Python]Add metadata parameter to pyspark.sql.Column.alias()","user":{"login":"shea-parkes","id":5782892,"avatar_url":"https://avatars.githubusercontent.com/u/5782892?v=3","gravatar_id":"","url":"https://api.github.com/users/shea-parkes","html_url":"https://github.com/shea-parkes","followers_url":"https://api.github.com/users/shea-parkes/followers","following_url":"https://api.github.com/users/shea-parkes/following{/other_user}","gists_url":"https://api.github.com/users/shea-parkes/gists{/gist_id}","starred_url":"https://api.github.com/users/shea-parkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shea-parkes/subscriptions","organizations_url":"https://api.github.com/users/shea-parkes/orgs","repos_url":"https://api.github.com/users/shea-parkes/repos","events_url":"https://api.github.com/users/shea-parkes/events{/privacy}","received_events_url":"https://api.github.com/users/shea-parkes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-01T03:16:55Z","updated_at":"2016-12-01T23:32:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/16094","html_url":"https://github.com/apache/spark/pull/16094","diff_url":"https://github.com/apache/spark/pull/16094.diff","patch_url":"https://github.com/apache/spark/pull/16094.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nAdd a `metadata` keyword parameter to `pyspark.sql.Column.alias()` to allow users to mix-in metadata while manipulating `DataFrame`s in `pyspark`.  Without this, I believe it was necessary to pass back through `SparkSession.createDataFrame` each time a user wanted to manipulate `StructField.metadata` in `pyspark`.  \r\n\r\nThis pull request also improves consistency between the Scala and Python APIs (i.e. I did not add any functionality that was not already in the Scala API).\r\n\r\nDiscussed ahead of time on JIRA with @marmbrus \r\n\r\n## How was this patch tested?\r\n\r\nAdded unit tests (and doc tests).  Ran the pertinent tests manually.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/264328683","html_url":"https://github.com/apache/spark/pull/16094#issuecomment-264328683","issue_url":"https://api.github.com/repos/apache/spark/issues/16094","id":264328683,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","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":"2016-12-01T23:32:45Z","updated_at":"2016-12-01T23:32:45Z","body":"**[Test build #69517 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/69517/consoleFull)** for PR 16094 at commit [`7af79a4`](https://github.com/apache/spark/commit/7af79a41c65c624158fbd9f15135f2e8d20ca936)."}}
{"actor":{"display_login":"SparkQA"}}