payload: {"action":"created","comment":{"url":"https://api.github.com/repos/apache/flink/pulls/comments/299760572","pull_request_review_id":257240203,"id":299760572,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5OTc2MDU3Mg==","diff_hunk":"@@ -0,0 +1,68 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with the License.  You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\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,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.apache.flink.table.operations.ddl;\n+\n+import org.apache.flink.table.catalog.CatalogTable;\n+import org.apache.flink.table.operations.Operation;\n+import org.apache.flink.table.operations.OperationUtils;\n+\n+import java.util.Collections;\n+import java.util.LinkedHashMap;\n+import java.util.Map;\n+\n+/**\n+ * Operation to describe a CREATE TABLE statement.\n+ */\n+public class CreateTableOperation implements CreateOperation {\n+\tprivate final String[] tablePath;\n+\tprivate CatalogTable catalogTable;\n+\tprivate boolean ignoreIfExists;\n+\n+\tpublic CreateTableOperation(String[] tablePath,\n+\t\t\tCatalogTable catalogTable,\n+\t\t\tboolean ignoreIfExists) {\n+\t\tthis.tablePath = tablePath;\n+\t\tthis.catalogTable = catalogTable;\n+\t\tthis.ignoreIfExists = ignoreIfExists;\n+\t}\n+\n+\tpublic CatalogTable getCatalogTable() {\n+\t\treturn catalogTable;\n+\t}\n+\n+\tpublic String[] getTablePath() {\n+\t\treturn tablePath;\n+\t}\n+\n+\tpublic boolean isIgnoreIfExists() {\n+\t\treturn ignoreIfExists;\n+\t}\n+\n+\t@Override\n+\tpublic String asSummaryString() {","path":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ddl/CreateTableOperation.java","position":58,"original_position":58,"commit_id":"26fdd21fe2bb407198be011a1eadb58d7ed1ecb2","original_commit_id":"873c69610c6dbad2337a9a5639240b33978ce237","user":{"login":"danny0405","id":7644508,"node_id":"MDQ6VXNlcjc2NDQ1MDg=","avatar_url":"https://avatars3.githubusercontent.com/u/7644508?v=4","gravatar_id":"","url":"https://api.github.com/users/danny0405","html_url":"https://github.com/danny0405","followers_url":"https://api.github.com/users/danny0405/followers","following_url":"https://api.github.com/users/danny0405/following{/other_user}","gists_url":"https://api.github.com/users/danny0405/gists{/gist_id}","starred_url":"https://api.github.com/users/danny0405/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danny0405/subscriptions","organizations_url":"https://api.github.com/users/danny0405/orgs","repos_url":"https://api.github.com/users/danny0405/repos","events_url":"https://api.github.com/users/danny0405/events{/privacy}","received_events_url":"https://api.github.com/users/danny0405/received_events","type":"User","site_admin":false},"body":"Added","created_at":"2019-07-03T03:06:55Z","updated_at":"2019-07-03T03:15:37Z","html_url":"https://github.com/apache/flink/pull/8844#discussion_r299760572","pull_request_url":"https://api.github.com/repos/apache/flink/pulls/8844","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/comments/299760572"},"html":{"href":"https://github.com/apache/flink/pull/8844#discussion_r299760572"},"pull_request":{"href":"https://api.github.com/repos/apache/flink/pulls/8844"}},"in_reply_to_id":299323271},"pull_request":{"url":"https://api.github.com/repos/apache/flink/pulls/8844","id":290945001,"node_id":"MDExOlB1bGxSZXF1ZXN0MjkwOTQ1MDAx","html_url":"https://github.com/apache/flink/pull/8844","diff_url":"https://github.com/apache/flink/pull/8844.diff","patch_url":"https://github.com/apache/flink/pull/8844.patch","issue_url":"https://api.github.com/repos/apache/flink/issues/8844","number":8844,"state":"open","locked":false,"title":"[FLINK-12951][table-planner] Add logic to bridge DDL to table source(…","user":{"login":"danny0405","id":7644508,"node_id":"MDQ6VXNlcjc2NDQ1MDg=","avatar_url":"https://avatars3.githubusercontent.com/u/7644508?v=4","gravatar_id":"","url":"https://api.github.com/users/danny0405","html_url":"https://github.com/danny0405","followers_url":"https://api.github.com/users/danny0405/followers","following_url":"https://api.github.com/users/danny0405/following{/other_user}","gists_url":"https://api.github.com/users/danny0405/gists{/gist_id}","starred_url":"https://api.github.com/users/danny0405/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danny0405/subscriptions","organizations_url":"https://api.github.com/users/danny0405/orgs","repos_url":"https://api.github.com/users/danny0405/repos","events_url":"https://api.github.com/users/danny0405/events{/privacy}","received_events_url":"https://api.github.com/users/danny0405/received_events","type":"User","site_admin":false},"body":"## What is the purpose of the change\r\n\r\nThis pull request add logic to convert a sql DDL to table source/sink.\r\n\r\n## Brief change log\r\n\r\n  - Add `TableEnvironment#sql()` and `TableEnvironment#registerTable()`\r\n  - Add transform logic for all kinds of sql node in SqlExecutableStatements to table Operations\r\n  - Add new table Operation `CreateOperation` for all the DDLs\r\n  - Add computed columns/PKs/UKs support for `TableSchema`\r\n\r\n## Verifying this change\r\n\r\nThis change is covered by test cases `CatalogTableITCase` and `SqlExecutableStatementsTest`.\r\n\r\n## Does this pull request potentially affect one of the following parts:\r\n\r\n  - Dependencies (does it add or upgrade a dependency): no\r\n  - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: yes, the TableSchema supports PK/UK/Computed Column\r\n  - The serializers: no\r\n  - The runtime per-record code paths (performance sensitive): no\r\n  - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: no\r\n  - The S3 file system connector: no\r\n\r\n## Documentation\r\n\r\n  - Does this pull request introduce a new feature? yes\r\n  - If yes, how is the feature documented? not documented\r\n","created_at":"2019-06-24T02:04:27Z","updated_at":"2019-07-03T03:15:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75f1ead478d34e8fa77d34a59ae447632aae5304","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1289893384,"node_id":"MDU6TGFiZWwxMjg5ODkzMzg0","url":"https://api.github.com/repos/apache/flink/labels/component=TableSQL/API","name":"component=TableSQL/API","color":"175fb7","default":false},{"id":1244454690,"node_id":"MDU6TGFiZWwxMjQ0NDU0Njkw","url":"https://api.github.com/repos/apache/flink/labels/review=description?","name":"review=description?","color":"bcf5db","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/apache/flink/pulls/8844/commits","review_comments_url":"https://api.github.com/repos/apache/flink/pulls/8844/comments","review_comment_url":"https://api.github.com/repos/apache/flink/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/flink/issues/8844/comments","statuses_url":"https://api.github.com/repos/apache/flink/statuses/26fdd21fe2bb407198be011a1eadb58d7ed1ecb2","head":{"label":"danny0405:flink-12951","ref":"flink-12951","sha":"26fdd21fe2bb407198be011a1eadb58d7ed1ecb2","user":{"login":"danny0405","id":7644508,"node_id":"MDQ6VXNlcjc2NDQ1MDg=","avatar_url":"https://avatars3.githubusercontent.com/u/7644508?v=4","gravatar_id":"","url":"https://api.github.com/users/danny0405","html_url":"https://github.com/danny0405","followers_url":"https://api.github.com/users/danny0405/followers","following_url":"https://api.github.com/users/danny0405/following{/other_user}","gists_url":"https://api.github.com/users/danny0405/gists{/gist_id}","starred_url":"https://api.github.com/users/danny0405/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danny0405/subscriptions","organizations_url":"https://api.github.com/users/danny0405/orgs","repos_url":"https://api.github.com/users/danny0405/repos","events_url":"https://api.github.com/users/danny0405/events{/privacy}","received_events_url":"https://api.github.com/users/danny0405/received_events","type":"User","site_admin":false},"repo":{"id":64282491,"node_id":"MDEwOlJlcG9zaXRvcnk2NDI4MjQ5MQ==","name":"flink","full_name":"danny0405/flink","private":false,"owner":{"login":"danny0405","id":7644508,"node_id":"MDQ6VXNlcjc2NDQ1MDg=","avatar_url":"https://avatars3.githubusercontent.com/u/7644508?v=4","gravatar_id":"","url":"https://api.github.com/users/danny0405","html_url":"https://github.com/danny0405","followers_url":"https://api.github.com/users/danny0405/followers","following_url":"https://api.github.com/users/danny0405/following{/other_user}","gists_url":"https://api.github.com/users/danny0405/gists{/gist_id}","starred_url":"https://api.github.com/users/danny0405/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danny0405/subscriptions","organizations_url":"https://api.github.com/users/danny0405/orgs","repos_url":"https://api.github.com/users/danny0405/repos","events_url":"https://api.github.com/users/danny0405/events{/privacy}","received_events_url":"https://api.github.com/users/danny0405/received_events","type":"User","site_admin":false},"html_url":"https://github.com/danny0405/flink","description":"Mirror of Apache Flink","fork":true,"url":"https://api.github.com/repos/danny0405/flink","forks_url":"https://api.github.com/repos/danny0405/flink/forks","keys_url":"https://api.github.com/repos/danny0405/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danny0405/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danny0405/flink/teams","hooks_url":"https://api.github.com/repos/danny0405/flink/hooks","issue_events_url":"https://api.github.com/repos/danny0405/flink/issues/events{/number}","events_url":"https://api.github.com/repos/danny0405/flink/events","assignees_url":"https://api.github.com/repos/danny0405/flink/assignees{/user}","branches_url":"https://api.github.com/repos/danny0405/flink/branches{/branch}","tags_url":"https://api.github.com/repos/danny0405/flink/tags","blobs_url":"https://api.github.com/repos/danny0405/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danny0405/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danny0405/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/danny0405/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danny0405/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/danny0405/flink/languages","stargazers_url":"https://api.github.com/repos/danny0405/flink/stargazers","contributors_url":"https://api.github.com/repos/danny0405/flink/contributors","subscribers_url":"https://api.github.com/repos/danny0405/flink/subscribers","subscription_url":"https://api.github.com/repos/danny0405/flink/subscription","commits_url":"https://api.github.com/repos/danny0405/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/danny0405/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/danny0405/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/danny0405/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/danny0405/flink/contents/{+path}","compare_url":"https://api.github.com/repos/danny0405/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danny0405/flink/merges","archive_url":"https://api.github.com/repos/danny0405/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danny0405/flink/downloads","issues_url":"https://api.github.com/repos/danny0405/flink/issues{/number}","pulls_url":"https://api.github.com/repos/danny0405/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/danny0405/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/danny0405/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danny0405/flink/labels{/name}","releases_url":"https://api.github.com/repos/danny0405/flink/releases{/id}","deployments_url":"https://api.github.com/repos/danny0405/flink/deployments","created_at":"2016-07-27T06:18:38Z","updated_at":"2016-07-27T06:19:05Z","pushed_at":"2019-07-02T07:34:02Z","git_url":"git://github.com/danny0405/flink.git","ssh_url":"git@github.com:danny0405/flink.git","clone_url":"https://github.com/danny0405/flink.git","svn_url":"https://github.com/danny0405/flink","homepage":null,"size":183107,"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":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"6a12908b15c398e37f8603cd84e0d30e14d07784","user":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":20587599,"node_id":"MDEwOlJlcG9zaXRvcnkyMDU4NzU5OQ==","name":"flink","full_name":"apache/flink","private":false,"owner":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/apache/flink","description":"Apache Flink","fork":false,"url":"https://api.github.com/repos/apache/flink","forks_url":"https://api.github.com/repos/apache/flink/forks","keys_url":"https://api.github.com/repos/apache/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/flink/teams","hooks_url":"https://api.github.com/repos/apache/flink/hooks","issue_events_url":"https://api.github.com/repos/apache/flink/issues/events{/number}","events_url":"https://api.github.com/repos/apache/flink/events","assignees_url":"https://api.github.com/repos/apache/flink/assignees{/user}","branches_url":"https://api.github.com/repos/apache/flink/branches{/branch}","tags_url":"https://api.github.com/repos/apache/flink/tags","blobs_url":"https://api.github.com/repos/apache/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/flink/languages","stargazers_url":"https://api.github.com/repos/apache/flink/stargazers","contributors_url":"https://api.github.com/repos/apache/flink/contributors","subscribers_url":"https://api.github.com/repos/apache/flink/subscribers","subscription_url":"https://api.github.com/repos/apache/flink/subscription","commits_url":"https://api.github.com/repos/apache/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/flink/contents/{+path}","compare_url":"https://api.github.com/repos/apache/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/flink/merges","archive_url":"https://api.github.com/repos/apache/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/flink/downloads","issues_url":"https://api.github.com/repos/apache/flink/issues{/number}","pulls_url":"https://api.github.com/repos/apache/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/flink/labels{/name}","releases_url":"https://api.github.com/repos/apache/flink/releases{/id}","deployments_url":"https://api.github.com/repos/apache/flink/deployments","created_at":"2014-06-07T07:00:10Z","updated_at":"2019-07-03T02:38:49Z","pushed_at":"2019-07-03T02:54:11Z","git_url":"git://github.com/apache/flink.git","ssh_url":"git@github.com:apache/flink.git","clone_url":"https://github.com/apache/flink.git","svn_url":"https://github.com/apache/flink","homepage":"","size":247739,"stargazers_count":9277,"watchers_count":9277,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4963,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":502,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":4963,"open_issues":502,"watchers":9277,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/8844"},"html":{"href":"https://github.com/apache/flink/pull/8844"},"issue":{"href":"https://api.github.com/repos/apache/flink/issues/8844"},"comments":{"href":"https://api.github.com/repos/apache/flink/issues/8844/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/flink/pulls/8844/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/flink/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/flink/pulls/8844/commits"},"statuses":{"href":"https://api.github.com/repos/apache/flink/statuses/26fdd21fe2bb407198be011a1eadb58d7ed1ecb2"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"danny0405"}}