snuyanzin commented on code in PR #28290:
URL: https://github.com/apache/flink/pull/28290#discussion_r3448172556
##########
flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/validate/FlinkSqlConformance.java:
##########
@@ -117,6 +122,11 @@ public boolean allowNiladicParentheses() {
return true;
}
+ @Override
+ public boolean allowNiladicConstantWithoutParentheses() {
+ return true;
+ }
Review Comment:
as mentioned in Calcite's javadoc
```
* Whether to allow parentheses to be specified in calls to niladic
functions of
* returned the specific constant value.
*
* <p>For example, {@code PI} is a niladic function and return specific
constant values pi.
* In standard SQL it must be invoked with parentheses:
*
* <blockquote><code>VALUES PI()</code></blockquote>
*
* <p>If {@code allowNiladicConstantWithoutParentheses}, the following
syntax is also valid:
```
https://github.com/apache/calcite/blob/1219091d2b76ccb1dfaa6f1f02c89c2a9ed5e532/core/src/main/java/org/apache/calcite/sql/validate/SqlConformance.java#L410-L432
--
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]