xiedeyantu commented on code in PR #4703:
URL: https://github.com/apache/calcite/pull/4703#discussion_r2646797727
##########
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:
Maybe miss 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]