snuyanzin commented on code in PR #26547:
URL: https://github.com/apache/flink/pull/26547#discussion_r2114867387


##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/StandardConvertletTable.java:
##########
@@ -265,6 +277,19 @@ private StandardConvertletTable() {
                                         call.operand(0),
                                         SqlLiteral.createExactNumeric("0.5", 
SqlParserPos.ZERO))));
 
+        // "STRPOS(string, substring) is equivalent to
+        // "POSITION(substring IN string)"
+        registerOp(
+                SqlLibraryOperators.STRPOS,
+                (cx, call) ->
+                        cx.convertExpression(
+                                SqlStdOperatorTable.POSITION.createCall(
+                                        SqlParserPos.ZERO, call.operand(1), 
call.operand(0))));
+
+        // "INSTR(string, substring, position, occurrence) is equivalent to

Review Comment:
   don't think so
   existing `position`, `instr` are covered in doc
   with other args just fail with validation 



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to