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 2021/05/26 10:12:40 UTC

[GitHub] [flink] Airblader opened a new pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

Airblader opened a new pull request #16006:
URL: https://github.com/apache/flink/pull/16006


   ## What is the purpose of the change
   
   This exposes the SET/RESET operations from the parser itself. Due to the limitations with Calcite, we require key/value to be single-quoted now (which is consistent with options in other DDL statements). In order to preserve backwards compatibility, however, we keep the regex-based extended parser implementation for now as well.
   
   User-facing this should not create any behavioral changes, it merely allows parsing (quoted) SET/RESET statements through the normal parser now. However, we do document the quoted syntax now.
   
   ## Brief change log
   
   *(for example:)*
   * Add SET/RESET to the sql-parser
   * Document the syntax with quotes
   * Update documentation examples using SET/RESET to use quotes
   
   ## Verifying this change
   
   A couple tests have been added for the new, quoted syntax. Otherwise this is covered by existing tests.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: yes (SQL Syntax)
     - The serializers: no
     - The runtime per-record code paths (performance sensitive): no
     - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: no
     - The S3 file system connector: no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? no
     - If yes, how is the feature documented? docs
   


-- 
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.

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



[GitHub] [flink] flinkbot commented on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c748d57aa5bb137d14d53e40bcf87d2b299f2037 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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.

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



[GitHub] [flink] flinkbot edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


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

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



[GitHub] [flink] flinkbot edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


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

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



[GitHub] [flink] Airblader commented on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   @twalthr Thanks! I've double-checked with the SQL client (see output above) and added the annotations (I promise I'll get used to adding them soon :-))


-- 
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.

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



[GitHub] [flink] flinkbot edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18347",
       "triggerID" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348",
       "triggerID" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349",
       "triggerID" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c748d57aa5bb137d14d53e40bcf87d2b299f2037 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18347) 
   * f11f6811b1818af5314df8b59b000f1d81bccb7b Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348) 
   * 5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f UNKNOWN
   * b41f5e39c064de7a065c73ef86be0c015a9f2d2f Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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.

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



[GitHub] [flink] flinkbot edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18347",
       "triggerID" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348",
       "triggerID" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349",
       "triggerID" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c65f8414ddcd53b98c5310a1960b79f0002d738b",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18359",
       "triggerID" : "c65f8414ddcd53b98c5310a1960b79f0002d738b",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fa10f21be3cafbd5feb853a96f31b0387929dcaa",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18361",
       "triggerID" : "fa10f21be3cafbd5feb853a96f31b0387929dcaa",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f UNKNOWN
   * b41f5e39c064de7a065c73ef86be0c015a9f2d2f Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349) 
   * c65f8414ddcd53b98c5310a1960b79f0002d738b Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18359) 
   * fa10f21be3cafbd5feb853a96f31b0387929dcaa Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18361) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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.

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



[GitHub] [flink] Airblader commented on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   @flinkbot run azure


-- 
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.

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



[GitHub] [flink] flinkbot edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18347",
       "triggerID" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348",
       "triggerID" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349",
       "triggerID" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c65f8414ddcd53b98c5310a1960b79f0002d738b",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "c65f8414ddcd53b98c5310a1960b79f0002d738b",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f UNKNOWN
   * b41f5e39c064de7a065c73ef86be0c015a9f2d2f Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349) 
   * c65f8414ddcd53b98c5310a1960b79f0002d738b UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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.

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



[GitHub] [flink] Airblader edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   @twalthr Thanks! I've double-checked with the SQL client (see output above) and added the annotations (I promise I'll get used to adding them soon :-))
   
   Edit: Actually, please hold off. I think the regular expression might need to change.


-- 
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.

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



[GitHub] [flink] flinkbot edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18347",
       "triggerID" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348",
       "triggerID" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349",
       "triggerID" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c65f8414ddcd53b98c5310a1960b79f0002d738b",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18359",
       "triggerID" : "c65f8414ddcd53b98c5310a1960b79f0002d738b",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fa10f21be3cafbd5feb853a96f31b0387929dcaa",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18361",
       "triggerID" : "fa10f21be3cafbd5feb853a96f31b0387929dcaa",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f UNKNOWN
   * c65f8414ddcd53b98c5310a1960b79f0002d738b Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18359) 
   * fa10f21be3cafbd5feb853a96f31b0387929dcaa Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18361) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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.

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



[GitHub] [flink] flinkbot edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   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 fa10f21be3cafbd5feb853a96f31b0387929dcaa (Fri May 28 11:11:06 UTC 2021)
   
    ✅no warnings
   
   <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.

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



[GitHub] [flink] flinkbot commented on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   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 c748d57aa5bb137d14d53e40bcf87d2b299f2037 (Wed May 26 10:16:07 UTC 2021)
   
    ✅no warnings
   
   <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.

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



[GitHub] [flink] flinkbot edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18347",
       "triggerID" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348",
       "triggerID" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349",
       "triggerID" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c65f8414ddcd53b98c5310a1960b79f0002d738b",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18359",
       "triggerID" : "c65f8414ddcd53b98c5310a1960b79f0002d738b",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fa10f21be3cafbd5feb853a96f31b0387929dcaa",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "fa10f21be3cafbd5feb853a96f31b0387929dcaa",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f UNKNOWN
   * b41f5e39c064de7a065c73ef86be0c015a9f2d2f Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349) 
   * c65f8414ddcd53b98c5310a1960b79f0002d738b Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18359) 
   * fa10f21be3cafbd5feb853a96f31b0387929dcaa UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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.

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



[GitHub] [flink] twalthr closed pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   


-- 
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.

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



[GitHub] [flink] flinkbot edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18347",
       "triggerID" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348",
       "triggerID" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349",
       "triggerID" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * f11f6811b1818af5314df8b59b000f1d81bccb7b Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348) 
   * 5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f UNKNOWN
   * b41f5e39c064de7a065c73ef86be0c015a9f2d2f Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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.

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



[GitHub] [flink] flinkbot edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18347",
       "triggerID" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348",
       "triggerID" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349",
       "triggerID" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f UNKNOWN
   * b41f5e39c064de7a065c73ef86be0c015a9f2d2f Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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.

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



[GitHub] [flink] flinkbot edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18347",
       "triggerID" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348",
       "triggerID" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c748d57aa5bb137d14d53e40bcf87d2b299f2037 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18347) 
   * f11f6811b1818af5314df8b59b000f1d81bccb7b Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348) 
   * 5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f UNKNOWN
   * b41f5e39c064de7a065c73ef86be0c015a9f2d2f UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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.

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



[GitHub] [flink] Airblader commented on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   ```
   Flink SQL> SET table.planner = blink;
   [INFO] Session property has been set.
   
   Flink SQL> SET 'table.planner' = 'blink';
   [INFO] Session property has been set.
   
   Flink SQL> RESET table.planner;
   [INFO] Session property has been reset.
   
   Flink SQL> RESET 'table.planner';
   [INFO] Session property has been reset.
   ```


-- 
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.

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



[GitHub] [flink] twalthr commented on a change in pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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



##########
File path: flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/SqlReset.java
##########
@@ -0,0 +1,81 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.sql.parser.ddl;
+
+import org.apache.calcite.sql.SqlCall;
+import org.apache.calcite.sql.SqlKind;
+import org.apache.calcite.sql.SqlLiteral;
+import org.apache.calcite.sql.SqlNode;
+import org.apache.calcite.sql.SqlOperator;
+import org.apache.calcite.sql.SqlSpecialOperator;
+import org.apache.calcite.sql.SqlWriter;
+import org.apache.calcite.sql.parser.SqlParserPos;
+import org.apache.calcite.util.ImmutableNullableList;
+import org.apache.calcite.util.NlsString;
+
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+import java.util.List;
+
+/** SQL call for "RESET" and "RESET 'key'". */
+public class SqlReset extends SqlCall {

Review comment:
       add `@Internal` here and at other classes

##########
File path: flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/operations/SqlToOperationConverter.java
##########
@@ -276,6 +280,10 @@ private SqlToOperationConverter(FlinkPlannerImpl flinkPlanner, CatalogManager ca
                     converter.convertBeginStatementSet((SqlBeginStatementSet) validated));
         } else if (validated instanceof SqlEndStatementSet) {
             return Optional.of(converter.convertEndStatementSet((SqlEndStatementSet) validated));
+        } else if (validated instanceof SqlSet) {

Review comment:
       do we need some special handling in the legacy planner? or is the current error behavior helpful?




-- 
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.

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



[GitHub] [flink] flinkbot edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


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

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



[GitHub] [flink] flinkbot edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18347",
       "triggerID" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348",
       "triggerID" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c748d57aa5bb137d14d53e40bcf87d2b299f2037 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18347) 
   * f11f6811b1818af5314df8b59b000f1d81bccb7b Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348) 
   * 5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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.

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



[GitHub] [flink] flinkbot edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18347",
       "triggerID" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348",
       "triggerID" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349",
       "triggerID" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c65f8414ddcd53b98c5310a1960b79f0002d738b",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18359",
       "triggerID" : "c65f8414ddcd53b98c5310a1960b79f0002d738b",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fa10f21be3cafbd5feb853a96f31b0387929dcaa",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18361",
       "triggerID" : "fa10f21be3cafbd5feb853a96f31b0387929dcaa",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f UNKNOWN
   * fa10f21be3cafbd5feb853a96f31b0387929dcaa Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18361) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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.

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



[GitHub] [flink] Airblader removed a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

Posted by GitBox <gi...@apache.org>.
Airblader removed a comment on pull request #16006:
URL: https://github.com/apache/flink/pull/16006#issuecomment-849333982


   @flinkbot run azure


-- 
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.

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



[GitHub] [flink] flinkbot edited a comment on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18347",
       "triggerID" : "c748d57aa5bb137d14d53e40bcf87d2b299f2037",
       "triggerType" : "PUSH"
     }, {
       "hash" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348",
       "triggerID" : "f11f6811b1818af5314df8b59b000f1d81bccb7b",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349",
       "triggerID" : "b41f5e39c064de7a065c73ef86be0c015a9f2d2f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c748d57aa5bb137d14d53e40bcf87d2b299f2037 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18347) 
   * f11f6811b1818af5314df8b59b000f1d81bccb7b Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18348) 
   * 5d88c53d0ba2f9877d866fb1e9a386a6febdfd7f UNKNOWN
   * b41f5e39c064de7a065c73ef86be0c015a9f2d2f Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=18349) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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.

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



[GitHub] [flink] Airblader commented on a change in pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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



##########
File path: flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/operations/SqlToOperationConverter.java
##########
@@ -276,6 +280,10 @@ private SqlToOperationConverter(FlinkPlannerImpl flinkPlanner, CatalogManager ca
                     converter.convertBeginStatementSet((SqlBeginStatementSet) validated));
         } else if (validated instanceof SqlEndStatementSet) {
             return Optional.of(converter.convertEndStatementSet((SqlEndStatementSet) validated));
+        } else if (validated instanceof SqlSet) {

Review comment:
       The behavior to return `empty()` seems consistent/sane to me given the contract. If you do end up trying to execute it, you'd get `TableEnvironmentImpl#UNSUPPORTED_QUERY_IN_EXECUTE_SQL_MSG` which is pretty elaborate (and nothing about this changed here anyway – you couldn't run SET through `TableEnvironment#execute*` and you can't now).




-- 
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.

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



[GitHub] [flink] Airblader commented on pull request #16006: [FLINK-22770][sql-parser][planner-blink] Expose SET/RESET

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


   OK, now it's good to go. I had to exclude quotes from the regular expression for the keys as otherwise `SET 'foo' = 'bar'` would create a key named `'foo'` (i.e., with quotes).


-- 
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.

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