You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2020/11/04 04:09:38 UTC
[GitHub] [calcite] liyafan82 commented on a change in pull request #2242: [CALCITE-4363] Need a utility to check if a SQL operator is standard
liyafan82 commented on a change in pull request #2242:
URL: https://github.com/apache/calcite/pull/2242#discussion_r517087047
##########
File path: core/src/main/java/org/apache/calcite/sql/fun/SqlStdOperatorTable.java
##########
@@ -482,6 +500,7 @@
* <p>Its precedence is less than the prefix {@link #UNARY_PLUS +}
* and {@link #UNARY_MINUS -} operators.
*/
+ @LibraryOperator(libraries = {STANDARD})
public static final SqlBinaryOperator MINUS =
new SqlMonotonicBinaryOperator(
"-",
Review comment:
Right, as @julianhyde pointed out, some operators are only for internal use (https://issues.apache.org/jira/browse/CALCITE-4363?focusedCommentId=17223122&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17223122).
In addition, some operators are supported by most databases, but not all databases (e.g. sqrt).
----------------------------------------------------------------
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