xuzifu666 commented on code in PR #4703:
URL: https://github.com/apache/calcite/pull/4703#discussion_r2648077878


##########
core/src/main/java/org/apache/calcite/sql/fun/SqlLibraryOperators.java:
##########
@@ -2774,4 +2774,33 @@ private static RelDataType 
deriveTypeMapFromEntries(SqlOperatorBinding opBinding
   public static final SqlFunction RANDOM = SqlStdOperatorTable.RAND
       .withName("RANDOM")
       .withOperandTypeChecker(OperandTypes.NILADIC);
+
+
+  /**
+   * AGE function for PostgreSQL.
+   * Returns the interval between two timestamps in DAY TO SECOND format.
+   *
+   * @see <a 
href="https://www.postgresql.org/docs/current/functions-datetime.html";>PostgreSQL
 AGE</a>
+   */
+  @LibraryOperator(libraries = {POSTGRESQL}, exceptLibraries = {REDSHIFT})

Review Comment:
   Currently, there is no ```DuckDB``` library, only a ```DuckDB``` dialect, so 
```DuckDB``` maybe cannot be considered here.



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