{"action":"created","comment":{"url":"https://api.github.com/repos/confluentinc/ksql/pulls/comments/349237794","pull_request_review_id":321081825,"id":349237794,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM0OTIzNzc5NA==","diff_hunk":"@@ -0,0 +1,61 @@\n+/*\n+ * Copyright 2019 Confluent Inc.\n+ *\n+ * Licensed under the Confluent Community License (the \"License\"; you may not use\n+ * this file except in compliance with the License. You may obtain a copy of the\n+ * License at\n+ *\n+ * http://www.confluent.io/confluent-community-license\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n+ * WARRANTIES OF ANY KIND, either express or implied.  See the License for the\n+ * specific language governing permissions and limitations under the License.\n+ */\n+\n+package io.confluent.ksql.function.udtf;\n+\n+import io.confluent.ksql.util.KsqlConstants;\n+import java.util.ArrayList;\n+import java.util.Collections;\n+import java.util.List;\n+\n+@UdtfDescription(name = \"cube\", author = KsqlConstants.CONFLUENT_AUTHOR,","path":"ksql-engine/src/main/java/io/confluent/ksql/function/udtf/Cube.java","position":23,"original_position":23,"commit_id":"b81ac95354156966684192636565f0b3be0283b4","original_commit_id":"b81ac95354156966684192636565f0b3be0283b4","user":{"login":"vinothchandar","id":1179324,"node_id":"MDQ6VXNlcjExNzkzMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1179324?v=4","gravatar_id":"","url":"https://api.github.com/users/vinothchandar","html_url":"https://github.com/vinothchandar","followers_url":"https://api.github.com/users/vinothchandar/followers","following_url":"https://api.github.com/users/vinothchandar/following{/other_user}","gists_url":"https://api.github.com/users/vinothchandar/gists{/gist_id}","starred_url":"https://api.github.com/users/vinothchandar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinothchandar/subscriptions","organizations_url":"https://api.github.com/users/vinothchandar/orgs","repos_url":"https://api.github.com/users/vinothchandar/repos","events_url":"https://api.github.com/users/vinothchandar/events{/privacy}","received_events_url":"https://api.github.com/users/vinothchandar/received_events","type":"User","site_admin":false},"body":"could we call this `cube_explode` , so that we could reserve `cube` as a keyword if we choose to add real support via grouping sets down the line?","created_at":"2019-11-21T18:05:11Z","updated_at":"2019-11-21T18:23:15Z","html_url":"https://github.com/confluentinc/ksql/pull/3935#discussion_r349237794","pull_request_url":"https://api.github.com/repos/confluentinc/ksql/pulls/3935","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/confluentinc/ksql/pulls/comments/349237794"},"html":{"href":"https://github.com/confluentinc/ksql/pull/3935#discussion_r349237794"},"pull_request":{"href":"https://api.github.com/repos/confluentinc/ksql/pulls/3935"}}},"pull_request":{"url":"https://api.github.com/repos/confluentinc/ksql/pulls/3935","id":343797796,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQzNzk3Nzk2","html_url":"https://github.com/confluentinc/ksql/pull/3935","diff_url":"https://github.com/confluentinc/ksql/pull/3935.diff","patch_url":"https://github.com/confluentinc/ksql/pull/3935.patch","issue_url":"https://api.github.com/repos/confluentinc/ksql/issues/3935","number":3935,"state":"open","locked":false,"title":"feat: Add Cube UDTF","user":{"login":"vpapavas","id":7738368,"node_id":"MDQ6VXNlcjc3MzgzNjg=","avatar_url":"https://avatars0.githubusercontent.com/u/7738368?v=4","gravatar_id":"","url":"https://api.github.com/users/vpapavas","html_url":"https://github.com/vpapavas","followers_url":"https://api.github.com/users/vpapavas/followers","following_url":"https://api.github.com/users/vpapavas/following{/other_user}","gists_url":"https://api.github.com/users/vpapavas/gists{/gist_id}","starred_url":"https://api.github.com/users/vpapavas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpapavas/subscriptions","organizations_url":"https://api.github.com/users/vpapavas/orgs","repos_url":"https://api.github.com/users/vpapavas/repos","events_url":"https://api.github.com/users/vpapavas/events{/privacy}","received_events_url":"https://api.github.com/users/vpapavas/received_events","type":"User","site_admin":false},"body":"### Description \r\nThe `cube` UDTF takes as argument a list of d columns and creates up tp 2^d rows (excludes duplicates created by `null` values in the input). Normally, `cube` is as an aggregate operator (extension to `Group By`) used in multi-dimensional data. As we don't have support for `Grouping Sets` yet, this UDTF enables us to achieve the same result in two steps: First, apply the `cube` UDTF to create all combinations, then apply aggregations on the result.\r\n\r\n### Testing done \r\nAdded unit test and QTT test\r\n\r\n### Reviewer checklist\r\nDid not update docs yet!","created_at":"2019-11-21T01:16:01Z","updated_at":"2019-11-21T18:23:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f85fdcd586dbc5b0d3cf7f5dd708f0027bd35bf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/confluentinc/ksql/pulls/3935/commits","review_comments_url":"https://api.github.com/repos/confluentinc/ksql/pulls/3935/comments","review_comment_url":"https://api.github.com/repos/confluentinc/ksql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/confluentinc/ksql/issues/3935/comments","statuses_url":"https://api.github.com/repos/confluentinc/ksql/statuses/b81ac95354156966684192636565f0b3be0283b4","head":{"label":"vpapavas:cube-udf","ref":"cube-udf","sha":"b81ac95354156966684192636565f0b3be0283b4","user":{"login":"vpapavas","id":7738368,"node_id":"MDQ6VXNlcjc3MzgzNjg=","avatar_url":"https://avatars0.githubusercontent.com/u/7738368?v=4","gravatar_id":"","url":"https://api.github.com/users/vpapavas","html_url":"https://github.com/vpapavas","followers_url":"https://api.github.com/users/vpapavas/followers","following_url":"https://api.github.com/users/vpapavas/following{/other_user}","gists_url":"https://api.github.com/users/vpapavas/gists{/gist_id}","starred_url":"https://api.github.com/users/vpapavas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpapavas/subscriptions","organizations_url":"https://api.github.com/users/vpapavas/orgs","repos_url":"https://api.github.com/users/vpapavas/repos","events_url":"https://api.github.com/users/vpapavas/events{/privacy}","received_events_url":"https://api.github.com/users/vpapavas/received_events","type":"User","site_admin":false},"repo":{"id":200938929,"node_id":"MDEwOlJlcG9zaXRvcnkyMDA5Mzg5Mjk=","name":"ksql","full_name":"vpapavas/ksql","private":false,"owner":{"login":"vpapavas","id":7738368,"node_id":"MDQ6VXNlcjc3MzgzNjg=","avatar_url":"https://avatars0.githubusercontent.com/u/7738368?v=4","gravatar_id":"","url":"https://api.github.com/users/vpapavas","html_url":"https://github.com/vpapavas","followers_url":"https://api.github.com/users/vpapavas/followers","following_url":"https://api.github.com/users/vpapavas/following{/other_user}","gists_url":"https://api.github.com/users/vpapavas/gists{/gist_id}","starred_url":"https://api.github.com/users/vpapavas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpapavas/subscriptions","organizations_url":"https://api.github.com/users/vpapavas/orgs","repos_url":"https://api.github.com/users/vpapavas/repos","events_url":"https://api.github.com/users/vpapavas/events{/privacy}","received_events_url":"https://api.github.com/users/vpapavas/received_events","type":"User","site_admin":false},"html_url":"https://github.com/vpapavas/ksql","description":"KSQL - the Streaming SQL Engine for Apache Kafka ","fork":true,"url":"https://api.github.com/repos/vpapavas/ksql","forks_url":"https://api.github.com/repos/vpapavas/ksql/forks","keys_url":"https://api.github.com/repos/vpapavas/ksql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vpapavas/ksql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vpapavas/ksql/teams","hooks_url":"https://api.github.com/repos/vpapavas/ksql/hooks","issue_events_url":"https://api.github.com/repos/vpapavas/ksql/issues/events{/number}","events_url":"https://api.github.com/repos/vpapavas/ksql/events","assignees_url":"https://api.github.com/repos/vpapavas/ksql/assignees{/user}","branches_url":"https://api.github.com/repos/vpapavas/ksql/branches{/branch}","tags_url":"https://api.github.com/repos/vpapavas/ksql/tags","blobs_url":"https://api.github.com/repos/vpapavas/ksql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vpapavas/ksql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vpapavas/ksql/git/refs{/sha}","trees_url":"https://api.github.com/repos/vpapavas/ksql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vpapavas/ksql/statuses/{sha}","languages_url":"https://api.github.com/repos/vpapavas/ksql/languages","stargazers_url":"https://api.github.com/repos/vpapavas/ksql/stargazers","contributors_url":"https://api.github.com/repos/vpapavas/ksql/contributors","subscribers_url":"https://api.github.com/repos/vpapavas/ksql/subscribers","subscription_url":"https://api.github.com/repos/vpapavas/ksql/subscription","commits_url":"https://api.github.com/repos/vpapavas/ksql/commits{/sha}","git_commits_url":"https://api.github.com/repos/vpapavas/ksql/git/commits{/sha}","comments_url":"https://api.github.com/repos/vpapavas/ksql/comments{/number}","issue_comment_url":"https://api.github.com/repos/vpapavas/ksql/issues/comments{/number}","contents_url":"https://api.github.com/repos/vpapavas/ksql/contents/{+path}","compare_url":"https://api.github.com/repos/vpapavas/ksql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vpapavas/ksql/merges","archive_url":"https://api.github.com/repos/vpapavas/ksql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vpapavas/ksql/downloads","issues_url":"https://api.github.com/repos/vpapavas/ksql/issues{/number}","pulls_url":"https://api.github.com/repos/vpapavas/ksql/pulls{/number}","milestones_url":"https://api.github.com/repos/vpapavas/ksql/milestones{/number}","notifications_url":"https://api.github.com/repos/vpapavas/ksql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vpapavas/ksql/labels{/name}","releases_url":"https://api.github.com/repos/vpapavas/ksql/releases{/id}","deployments_url":"https://api.github.com/repos/vpapavas/ksql/deployments","created_at":"2019-08-06T23:43:56Z","updated_at":"2019-08-27T18:32:58Z","pushed_at":"2019-11-21T00:53:57Z","git_url":"git://github.com/vpapavas/ksql.git","ssh_url":"git@github.com:vpapavas/ksql.git","clone_url":"https://github.com/vpapavas/ksql.git","svn_url":"https://github.com/vpapavas/ksql","homepage":"","size":34331,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"confluentinc:master","ref":"master","sha":"492b15c9db9aa0074191c2daab5ec2f11676c059","user":{"login":"confluentinc","id":9439498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0Mzk0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/9439498?v=4","gravatar_id":"","url":"https://api.github.com/users/confluentinc","html_url":"https://github.com/confluentinc","followers_url":"https://api.github.com/users/confluentinc/followers","following_url":"https://api.github.com/users/confluentinc/following{/other_user}","gists_url":"https://api.github.com/users/confluentinc/gists{/gist_id}","starred_url":"https://api.github.com/users/confluentinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confluentinc/subscriptions","organizations_url":"https://api.github.com/users/confluentinc/orgs","repos_url":"https://api.github.com/users/confluentinc/repos","events_url":"https://api.github.com/users/confluentinc/events{/privacy}","received_events_url":"https://api.github.com/users/confluentinc/received_events","type":"Organization","site_admin":false},"repo":{"id":69400326,"node_id":"MDEwOlJlcG9zaXRvcnk2OTQwMDMyNg==","name":"ksql","full_name":"confluentinc/ksql","private":false,"owner":{"login":"confluentinc","id":9439498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0Mzk0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/9439498?v=4","gravatar_id":"","url":"https://api.github.com/users/confluentinc","html_url":"https://github.com/confluentinc","followers_url":"https://api.github.com/users/confluentinc/followers","following_url":"https://api.github.com/users/confluentinc/following{/other_user}","gists_url":"https://api.github.com/users/confluentinc/gists{/gist_id}","starred_url":"https://api.github.com/users/confluentinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confluentinc/subscriptions","organizations_url":"https://api.github.com/users/confluentinc/orgs","repos_url":"https://api.github.com/users/confluentinc/repos","events_url":"https://api.github.com/users/confluentinc/events{/privacy}","received_events_url":"https://api.github.com/users/confluentinc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/confluentinc/ksql","description":"The event streaming database purpose-built for stream processing applications","fork":false,"url":"https://api.github.com/repos/confluentinc/ksql","forks_url":"https://api.github.com/repos/confluentinc/ksql/forks","keys_url":"https://api.github.com/repos/confluentinc/ksql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/confluentinc/ksql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/confluentinc/ksql/teams","hooks_url":"https://api.github.com/repos/confluentinc/ksql/hooks","issue_events_url":"https://api.github.com/repos/confluentinc/ksql/issues/events{/number}","events_url":"https://api.github.com/repos/confluentinc/ksql/events","assignees_url":"https://api.github.com/repos/confluentinc/ksql/assignees{/user}","branches_url":"https://api.github.com/repos/confluentinc/ksql/branches{/branch}","tags_url":"https://api.github.com/repos/confluentinc/ksql/tags","blobs_url":"https://api.github.com/repos/confluentinc/ksql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/confluentinc/ksql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/confluentinc/ksql/git/refs{/sha}","trees_url":"https://api.github.com/repos/confluentinc/ksql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/confluentinc/ksql/statuses/{sha}","languages_url":"https://api.github.com/repos/confluentinc/ksql/languages","stargazers_url":"https://api.github.com/repos/confluentinc/ksql/stargazers","contributors_url":"https://api.github.com/repos/confluentinc/ksql/contributors","subscribers_url":"https://api.github.com/repos/confluentinc/ksql/subscribers","subscription_url":"https://api.github.com/repos/confluentinc/ksql/subscription","commits_url":"https://api.github.com/repos/confluentinc/ksql/commits{/sha}","git_commits_url":"https://api.github.com/repos/confluentinc/ksql/git/commits{/sha}","comments_url":"https://api.github.com/repos/confluentinc/ksql/comments{/number}","issue_comment_url":"https://api.github.com/repos/confluentinc/ksql/issues/comments{/number}","contents_url":"https://api.github.com/repos/confluentinc/ksql/contents/{+path}","compare_url":"https://api.github.com/repos/confluentinc/ksql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/confluentinc/ksql/merges","archive_url":"https://api.github.com/repos/confluentinc/ksql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/confluentinc/ksql/downloads","issues_url":"https://api.github.com/repos/confluentinc/ksql/issues{/number}","pulls_url":"https://api.github.com/repos/confluentinc/ksql/pulls{/number}","milestones_url":"https://api.github.com/repos/confluentinc/ksql/milestones{/number}","notifications_url":"https://api.github.com/repos/confluentinc/ksql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/confluentinc/ksql/labels{/name}","releases_url":"https://api.github.com/repos/confluentinc/ksql/releases{/id}","deployments_url":"https://api.github.com/repos/confluentinc/ksql/deployments","created_at":"2016-09-27T21:30:15Z","updated_at":"2019-11-21T18:22:02Z","pushed_at":"2019-11-21T18:22:00Z","git_url":"git://github.com/confluentinc/ksql.git","ssh_url":"git@github.com:confluentinc/ksql.git","clone_url":"https://github.com/confluentinc/ksql.git","svn_url":"https://github.com/confluentinc/ksql","homepage":"https://ksqldb.io","size":35713,"stargazers_count":2736,"watchers_count":2736,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":557,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":594,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":557,"open_issues":594,"watchers":2736,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/confluentinc/ksql/pulls/3935"},"html":{"href":"https://github.com/confluentinc/ksql/pull/3935"},"issue":{"href":"https://api.github.com/repos/confluentinc/ksql/issues/3935"},"comments":{"href":"https://api.github.com/repos/confluentinc/ksql/issues/3935/comments"},"review_comments":{"href":"https://api.github.com/repos/confluentinc/ksql/pulls/3935/comments"},"review_comment":{"href":"https://api.github.com/repos/confluentinc/ksql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/confluentinc/ksql/pulls/3935/commits"},"statuses":{"href":"https://api.github.com/repos/confluentinc/ksql/statuses/b81ac95354156966684192636565f0b3be0283b4"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"vinothchandar"}}