You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/02/16 13:57:47 UTC

[GitHub] [flink] slinkydeveloper opened a new pull request #18804: [hotfix][docs][table] Document the new `TablePipeline` API object

slinkydeveloper opened a new pull request #18804:
URL: https://github.com/apache/flink/pull/18804


   This is a followup of https://github.com/apache/flink/pull/18755, modifying the existing docs about `executeInsert` and `addInsert`, suggesting the new method rather than the old one.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18804: [hotfix][docs][table] Document the new `TablePipeline` API object

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18804:
URL: https://github.com/apache/flink/pull/18804#issuecomment-1041525289


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "46d0dae576615a1335cdf6e76a44d7594576ce34",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31671",
       "triggerID" : "46d0dae576615a1335cdf6e76a44d7594576ce34",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 46d0dae576615a1335cdf6e76a44d7594576ce34 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31671) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18804: [hotfix][docs][table] Document the new `TablePipeline` API object

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18804:
URL: https://github.com/apache/flink/pull/18804#issuecomment-1041525289


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "46d0dae576615a1335cdf6e76a44d7594576ce34",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31671",
       "triggerID" : "46d0dae576615a1335cdf6e76a44d7594576ce34",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0c67a41472fb2e63dc63214028c6c7d6bb2f0ed2",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31765",
       "triggerID" : "0c67a41472fb2e63dc63214028c6c7d6bb2f0ed2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 46d0dae576615a1335cdf6e76a44d7594576ce34 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31671) 
   * 0c67a41472fb2e63dc63214028c6c7d6bb2f0ed2 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31765) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18804: [hotfix][docs][table] Document the new `TablePipeline` API object

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18804:
URL: https://github.com/apache/flink/pull/18804#issuecomment-1041525289


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "46d0dae576615a1335cdf6e76a44d7594576ce34",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31671",
       "triggerID" : "46d0dae576615a1335cdf6e76a44d7594576ce34",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 46d0dae576615a1335cdf6e76a44d7594576ce34 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31671) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot commented on pull request #18804: [hotfix][docs][table] Document the new `TablePipeline` API object

Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #18804:
URL: https://github.com/apache/flink/pull/18804#issuecomment-1041522470


   Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
   to review your pull request. We will use this comment to track the progress of the review.
   
   
   ## Automated Checks
   Last check on commit 46d0dae576615a1335cdf6e76a44d7594576ce34 (Wed Feb 16 14:02:05 UTC 2022)
   
   **Warnings:**
    * Documentation files were touched, but no `docs/content.zh/` files: Update Chinese documentation or file Jira ticket.
   
   
   <sub>Mention the bot in a comment to re-run the automated checks.</sub>
   ## Review Progress
   
   * ❓ 1. The [description] looks good.
   * ❓ 2. There is [consensus] that the contribution should go into to Flink.
   * ❓ 3. Needs [attention] from.
   * ❓ 4. The change fits into the overall [architecture].
   * ❓ 5. Overall code [quality] is good.
   
   Please see the [Pull Request Review Guide](https://flink.apache.org/contributing/reviewing-prs.html) for a full explanation of the review process.<details>
    The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot approve description` to approve one or more aspects (aspects: `description`, `consensus`, `architecture` and `quality`)
    - `@flinkbot approve all` to approve all aspects
    - `@flinkbot approve-until architecture` to approve everything until `architecture`
    - `@flinkbot attention @username1 [@username2 ..]` to require somebody's attention
    - `@flinkbot disapprove architecture` to remove an approval you gave earlier
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18804: [hotfix][docs][table] Document the new `TablePipeline` API object

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18804:
URL: https://github.com/apache/flink/pull/18804#issuecomment-1041525289


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "46d0dae576615a1335cdf6e76a44d7594576ce34",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31671",
       "triggerID" : "46d0dae576615a1335cdf6e76a44d7594576ce34",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0c67a41472fb2e63dc63214028c6c7d6bb2f0ed2",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "0c67a41472fb2e63dc63214028c6c7d6bb2f0ed2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 46d0dae576615a1335cdf6e76a44d7594576ce34 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31671) 
   * 0c67a41472fb2e63dc63214028c6c7d6bb2f0ed2 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] matriv commented on a change in pull request #18804: [hotfix][docs][table] Document the new `TablePipeline` API object

Posted by GitBox <gi...@apache.org>.
matriv commented on a change in pull request #18804:
URL: https://github.com/apache/flink/pull/18804#discussion_r808802789



##########
File path: docs/content/docs/dev/table/tableApi.md
##########
@@ -1454,21 +1454,23 @@ result3 = table.order_by(table.a.asc).offset(10).fetch(5)
 
 {{< label Batch >}} {{< label Streaming >}}
 
-Similar to the `INSERT INTO` clause in a SQL query, the method performs an insertion into a registered output table. The `executeInsert()` method will immediately submit a Flink job which execute the insert operation.
+Similar to the `INSERT INTO` clause in a SQL query, the method performs an insertion into a registered output table. 
+The `insertInto()` method will translate the `INSERT INTO` to a `TablePipeline`. 

Review comment:
       maybe `convert` is better than `translate`?

##########
File path: docs/content/docs/dev/table/common.md
##########
@@ -750,9 +763,9 @@ A query is internally represented as a logical query plan and is translated in t
 A Table API or SQL query is translated when:
 
 * `TableEnvironment.executeSql()` is called. This method is used for executing a given statement, and the sql query is translated immediately once this method is called.
-* `Table.executeInsert()` is called. This method is used for inserting the table content to the given sink path, and the Table API is translated immediately once this method is called.
+* `Table.insertInto()` is called. This method is used for translating an insertion of the table content to the given sink path into a `TablePipeline`, and the Table API is translated immediately once this method is called. Using `TablePipeline.execute()` will execute the pipeline.

Review comment:
       `translating` -> `converting`, but not insisting, it's personal opinion.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] slinkydeveloper commented on pull request #18804: [hotfix][docs][table] Document the new `TablePipeline` API object

Posted by GitBox <gi...@apache.org>.
slinkydeveloper commented on pull request #18804:
URL: https://github.com/apache/flink/pull/18804#issuecomment-1055249167


   Issue opened https://issues.apache.org/jira/browse/FLINK-26422


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18804: [hotfix][docs][table] Document the new `TablePipeline` API object

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18804:
URL: https://github.com/apache/flink/pull/18804#issuecomment-1041525289


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "46d0dae576615a1335cdf6e76a44d7594576ce34",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31671",
       "triggerID" : "46d0dae576615a1335cdf6e76a44d7594576ce34",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0c67a41472fb2e63dc63214028c6c7d6bb2f0ed2",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31765",
       "triggerID" : "0c67a41472fb2e63dc63214028c6c7d6bb2f0ed2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0c67a41472fb2e63dc63214028c6c7d6bb2f0ed2 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31765) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] twalthr closed pull request #18804: [hotfix][docs][table] Document the new `TablePipeline` API object

Posted by GitBox <gi...@apache.org>.
twalthr closed pull request #18804:
URL: https://github.com/apache/flink/pull/18804


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] slinkydeveloper commented on a change in pull request #18804: [hotfix][docs][table] Document the new `TablePipeline` API object

Posted by GitBox <gi...@apache.org>.
slinkydeveloper commented on a change in pull request #18804:
URL: https://github.com/apache/flink/pull/18804#discussion_r808980741



##########
File path: docs/content/docs/dev/table/tableApi.md
##########
@@ -1454,21 +1454,23 @@ result3 = table.order_by(table.a.asc).offset(10).fetch(5)
 
 {{< label Batch >}} {{< label Streaming >}}
 
-Similar to the `INSERT INTO` clause in a SQL query, the method performs an insertion into a registered output table. The `executeInsert()` method will immediately submit a Flink job which execute the insert operation.
+Similar to the `INSERT INTO` clause in a SQL query, the method performs an insertion into a registered output table. 
+The `insertInto()` method will translate the `INSERT INTO` to a `TablePipeline`. 

Review comment:
       The reason I used _translate_ here is because I initially wanted to use _compile_, which better resembles the idea of this method. I personally don't like _convert_ here, as for me convert recalls converting data from one data structure to another. Here we're doing something more complicated than just converting data, we're doing parsing, planning, optimizing, etc. Yes, at the end it's still a conversion, but it's a bit too broad here. But again, i don't have a strong opinion, I'm open to suggestions




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot commented on pull request #18804: [hotfix][docs][table] Document the new `TablePipeline` API object

Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #18804:
URL: https://github.com/apache/flink/pull/18804#issuecomment-1041525289


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "46d0dae576615a1335cdf6e76a44d7594576ce34",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "46d0dae576615a1335cdf6e76a44d7594576ce34",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 46d0dae576615a1335cdf6e76a44d7594576ce34 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] matriv commented on a change in pull request #18804: [hotfix][docs][table] Document the new `TablePipeline` API object

Posted by GitBox <gi...@apache.org>.
matriv commented on a change in pull request #18804:
URL: https://github.com/apache/flink/pull/18804#discussion_r808994101



##########
File path: docs/content/docs/dev/table/tableApi.md
##########
@@ -1454,21 +1454,23 @@ result3 = table.order_by(table.a.asc).offset(10).fetch(5)
 
 {{< label Batch >}} {{< label Streaming >}}
 
-Similar to the `INSERT INTO` clause in a SQL query, the method performs an insertion into a registered output table. The `executeInsert()` method will immediately submit a Flink job which execute the insert operation.
+Similar to the `INSERT INTO` clause in a SQL query, the method performs an insertion into a registered output table. 
+The `insertInto()` method will translate the `INSERT INTO` to a `TablePipeline`. 

Review comment:
       I understand, I also don't think `convert` is 100% matching the context as well.
   `transform` maybe?
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] twalthr commented on pull request #18804: [hotfix][docs][table] Document the new `TablePipeline` API object

Posted by GitBox <gi...@apache.org>.
twalthr commented on pull request #18804:
URL: https://github.com/apache/flink/pull/18804#issuecomment-1055191530


   @slinkydeveloper please open a follow up ticket that updates the Chinese documentation with the content of 4f65c7950f2c3ef849f2094deab0e199ffedf57b. For the next time, people open a JIRA issue to reference each other.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org