{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/12136","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/12136/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/12136/comments","events_url":"https://api.github.com/repos/apache/spark/issues/12136/events","html_url":"https://github.com/apache/spark/pull/12136","id":145471070,"number":12136,"title":"[SPARK-14353] Dataset Time Window `window` API for Python, and SQL","user":{"login":"brkyvz","id":5243515,"avatar_url":"https://avatars.githubusercontent.com/u/5243515?v=3","gravatar_id":"","url":"https://api.github.com/users/brkyvz","html_url":"https://github.com/brkyvz","followers_url":"https://api.github.com/users/brkyvz/followers","following_url":"https://api.github.com/users/brkyvz/following{/other_user}","gists_url":"https://api.github.com/users/brkyvz/gists{/gist_id}","starred_url":"https://api.github.com/users/brkyvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brkyvz/subscriptions","organizations_url":"https://api.github.com/users/brkyvz/orgs","repos_url":"https://api.github.com/users/brkyvz/repos","events_url":"https://api.github.com/users/brkyvz/events{/privacy}","received_events_url":"https://api.github.com/users/brkyvz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-04-03T08:42:02Z","updated_at":"2016-04-05T01:47:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/12136","html_url":"https://github.com/apache/spark/pull/12136","diff_url":"https://github.com/apache/spark/pull/12136.diff","patch_url":"https://github.com/apache/spark/pull/12136.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nThe `window` function was added to Dataset with [this PR](https://github.com/apache/spark/pull/12008).\r\nThis PR adds the Python, and SQL, API for this function.\r\n\r\nWith this PR, SQL, Java, and Scala will share the same APIs as in users can use:\r\n - `window(timeColumn, windowDuration)` \r\n - `window(timeColumn, windowDuration, slideDuration)` \r\n - `window(timeColumn, windowDuration, slideDuration, startTime)`\r\n\r\nIn Python, users can access all APIs above, but in addition they can do\r\n - In Python:\r\n   `window(timeColumn, windowDuration, startTime=...)`\r\n\r\nthat is, they can provide the startTime without providing the `slideDuration`. In this case, we will generate tumbling windows.\r\n\r\n## How was this patch tested?\r\n\r\nUnit tests + manual tests"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/205587956","html_url":"https://github.com/apache/spark/pull/12136#issuecomment-205587956","issue_url":"https://api.github.com/repos/apache/spark/issues/12136","id":205587956,"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-04-05T01:47:22Z","updated_at":"2016-04-05T01:47:22Z","body":"**[Test build #54913 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/54913/consoleFull)** for PR 12136 at commit [`c891d75`](https://github.com/apache/spark/commit/c891d75c572e40b9f5ffd629ed9721d46b82091f).\n * This patch **fails Spark unit tests**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}