{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/19630","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/19630/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/19630/comments","events_url":"https://api.github.com/repos/apache/spark/issues/19630/events","html_url":"https://github.com/apache/spark/pull/19630","id":270376260,"number":19630,"title":"wip: [SPARK-22409] Introduce function type argument in pandas_udf","user":{"login":"icexelloss","id":793516,"avatar_url":"https://avatars0.githubusercontent.com/u/793516?v=4","gravatar_id":"","url":"https://api.github.com/users/icexelloss","html_url":"https://github.com/icexelloss","followers_url":"https://api.github.com/users/icexelloss/followers","following_url":"https://api.github.com/users/icexelloss/following{/other_user}","gists_url":"https://api.github.com/users/icexelloss/gists{/gist_id}","starred_url":"https://api.github.com/users/icexelloss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icexelloss/subscriptions","organizations_url":"https://api.github.com/users/icexelloss/orgs","repos_url":"https://api.github.com/users/icexelloss/repos","events_url":"https://api.github.com/users/icexelloss/events{/privacy}","received_events_url":"https://api.github.com/users/icexelloss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-11-01T16:56:31Z","updated_at":"2017-11-10T19:21:11Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/19630","html_url":"https://github.com/apache/spark/pull/19630","diff_url":"https://github.com/apache/spark/pull/19630.diff","patch_url":"https://github.com/apache/spark/pull/19630.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\n* Add a \"function type\" argument to pandas_udf.\r\n* Add a new public enum class `PandasUdfType` in pyspark.sql.functions\r\n* Refactor udf related code from pyspark.sql.functions to pyspark.sql.udf\r\n* Merge \"PythonUdfType\" and \"PythonEvalType\" into a single enum class \"PythonEvalType\"\r\n\r\nExample:\r\n```\r\nfrom pyspark.sql.functions import pandas_udf, PandasUdfType\r\n\r\n@pandas_udf('double', PandasUdfType.SCALAR):\r\ndef plus_one(v):\r\n    return v + 1\r\n```\r\n\r\n## Design doc\r\nhttps://docs.google.com/document/d/1KlLaa-xJ3oz28xlEJqXyCAHU3dwFYkFs_ixcUXrJNTc/edit\r\n\r\n## How was this patch tested?\r\n\r\nAdded PandasUDFTests\r\n\r\n## TODO:\r\n* [x] Implement proper enum type for `PandasUdfType`\r\n* [ ] Update documentation\r\n* [ ] Add more tests in PandasUDFTests\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/343562425","html_url":"https://github.com/apache/spark/pull/19630#issuecomment-343562425","issue_url":"https://api.github.com/repos/apache/spark/issues/19630","id":343562425,"user":{"login":"SparkQA","id":8108735,"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":"2017-11-10T19:21:11Z","updated_at":"2017-11-10T19:21:11Z","author_association":"NONE","body":"**[Test build #83699 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/83699/testReport)** for PR 19630 at commit [`ee8009d`](https://github.com/apache/spark/commit/ee8009d9a98f65c1c821692e2c7aa05c25baaca9).\n * This patch **fails to build**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}
{"actor":{"display_login":"SparkQA"}}