snuyanzin commented on code in PR #3114:
URL: https://github.com/apache/calcite/pull/3114#discussion_r1140651954
##########
core/src/main/java/org/apache/calcite/sql/fun/SqlLibraryOperators.java:
##########
@@ -255,6 +255,10 @@ private SqlLibraryOperators() {
OperandTypes.STRING)
.withFunctionType(SqlFunctionCategory.STRING);
+ /** The "STRPOS(value1, value2)" function. */
+ @LibraryOperator(libraries = {BIG_QUERY})
+ public static final SqlFunction STRPOS = new SqlPositionFunction("STRPOS");
Review Comment:
It looks like same function is available in Postgres[1].
Shouldn't it be added in Potgres dialect as well?
[1] https://www.postgresql.org/docs/9.1/functions-string.html
--
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]