dawidwys commented on code in PR #23223:
URL: https://github.com/apache/flink/pull/23223#discussion_r1342877025


##########
docs/layouts/shortcodes/generated/table_config_configuration.html:
##########
@@ -62,6 +62,12 @@
             <td>String</td>
             <td>The local time zone defines current session time zone id. It 
is used when converting to/from &lt;code&gt;TIMESTAMP WITH LOCAL TIME 
ZONE&lt;/code&gt;. Internally, timestamps with local time zone are always 
represented in the UTC time zone. However, when converting to data types that 
don't include a time zone (e.g. TIMESTAMP, TIME, or simply STRING), the session 
time zone is used during conversion. The input of option is either a full name 
such as "America/Los_Angeles", or a custom timezone id such as "GMT-08:00".</td>
         </tr>
+        <tr>
+            <td><h5>table.optimizer.query-hints.enabled</h5><br> <span 
class="label label-primary">Batch</span> <span class="label 
label-primary">Streaming</span></td>

Review Comment:
   > from SQL point of view content of comments should not impact the output 
and currently it is (depending on the property value it either returns a result 
or throws an exception...) Or if we say we set the flag value to false (turn 
off hint support) then depending on content of comment block in query it either 
throws exception or returns a valid result...
   
   I disagree with that take on throwing exception. I think it's exaggerated. 
Hints are already there and they do impact the output. You can draw comparison 
with e.g. providing an invalid parameter to e.g. 
https://nightlies.apache.org/flink/flink-docs-release-1.17/docs/dev/table/sql/queries/hints/#lookup-hint-options
 If you provide a valid parameter it will produce output, if an invalid one it 
will throw an exception.
   
   I do agree we should have a community agreement if we want to ignore hints 
or throw an exception. Another option I see is we can have an enum parameter 
(ENABLE, IGNORE, THROW).



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to