{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/22100","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/22100/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/22100/comments","events_url":"https://api.github.com/repos/apache/spark/issues/22100/events","html_url":"https://github.com/apache/spark/pull/22100","id":350305089,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4MTg3MTgz","number":22100,"title":"[SPARK-25105][PySpark] [SQL]Include PandasUDFType in the import all of pyspark.sql.functions ","user":{"login":"kevinyu98","id":7550280,"node_id":"MDQ6VXNlcjc1NTAyODA=","avatar_url":"https://avatars3.githubusercontent.com/u/7550280?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinyu98","html_url":"https://github.com/kevinyu98","followers_url":"https://api.github.com/users/kevinyu98/followers","following_url":"https://api.github.com/users/kevinyu98/following{/other_user}","gists_url":"https://api.github.com/users/kevinyu98/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinyu98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinyu98/subscriptions","organizations_url":"https://api.github.com/users/kevinyu98/orgs","repos_url":"https://api.github.com/users/kevinyu98/repos","events_url":"https://api.github.com/users/kevinyu98/events{/privacy}","received_events_url":"https://api.github.com/users/kevinyu98/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-08-14T07:06:09Z","updated_at":"2018-08-14T21:28:38Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/22100","html_url":"https://github.com/apache/spark/pull/22100","diff_url":"https://github.com/apache/spark/pull/22100.diff","patch_url":"https://github.com/apache/spark/pull/22100.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nInclude PandasUDFType in the import all of pyspark.sql.functions \r\n\r\n## How was this patch tested?\r\n\r\nRun the test case from the pyspark shell from the jira [spark-25105](https://jira.apache.org/jira/browse/SPARK-25105?jql=project%20%3D%20SPARK%20AND%20component%20in%20(ML%2C%20PySpark%2C%20SQL%2C%20%22Structured%20Streaming%22))\r\nI manually test on pyspark-shell:\r\nbefore:\r\n`\r\n>>> from pyspark.sql.functions import *\r\n>>> foo = pandas_udf(lambda x: x, 'v int', PandasUDFType.GROUPED_MAP)\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nNameError: name 'PandasUDFType' is not defined\r\n>>> \r\n`\r\nafter:\r\n`\r\n>>> from pyspark.sql.functions import *\r\n>>> foo = pandas_udf(lambda x: x, 'v int', PandasUDFType.GROUPED_MAP)\r\n>>> \r\n`\r\nPlease review http://spark.apache.org/contributing.html before opening a pull request.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/413022279","html_url":"https://github.com/apache/spark/pull/22100#issuecomment-413022279","issue_url":"https://api.github.com/repos/apache/spark/issues/22100","id":413022279,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzAyMjI3OQ==","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-08-14T21:28:38Z","updated_at":"2018-08-14T21:28:38Z","author_association":"NONE","body":"Merged build finished. Test PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}