You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "dalongliu (Jira)" <ji...@apache.org> on 2023/08/16 06:21:00 UTC

[jira] [Commented] (FLINK-32873) Add configuration to allow disabling SQL query hints

    [ https://issues.apache.org/jira/browse/FLINK-32873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17754889#comment-17754889 ] 

dalongliu commented on FLINK-32873:
-----------------------------------

[~bvarghese] Does there have some discuss introducing this option?

> Add configuration to allow disabling SQL query hints
> ----------------------------------------------------
>
>                 Key: FLINK-32873
>                 URL: https://issues.apache.org/jira/browse/FLINK-32873
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / Planner
>            Reporter: Bonnie Varghese
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.18.0
>
>
> Platform providers may want to disable hints completely for security reasons.
> Currently, there is a configuration to disable OPTIONS hint - [https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/config/#table-dynamic-table-options-enabled]
> We need a new configuration to also disable QUERY hints - [https://nightlies.apache.org/flink/flink-docs-release-1.17/docs/dev/table/sql/queries/hints/#query-hints]
> The proposal is to add a new configuration:
>  
> {code:java}
> Name: table.query-options.enabled
> Description: Enable or disable the QUERY hint, if disabled, an exception would be thrown if any QUERY hints are specified
> Note: The default value will be set to true.
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)