ILuffZhe commented on code in PR #3292: URL: https://github.com/apache/calcite/pull/3292#discussion_r1270123652
########## core/src/main/java/org/apache/calcite/sql/fun/SqlLibraryOperators.java: ########## @@ -1260,6 +1260,14 @@ private static RelDataType deriveTypeMapFromEntries(SqlOperatorBinding opBinding ReturnTypes.IDENTITY_TO_MAP_NULLABLE, OperandTypes.STRING_OPTIONAL_STRING_OPTIONAL_STRING); + /** The "SUBSTRING_INDEX(string, delimiter, count)" function. */ + @LibraryOperator(libraries = {SPARK}) + public static final SqlFunction SUBSTRING_INDEX = + SqlBasicFunction.create(SqlKind.SUBSTRING_INDEX, + ReturnTypes.ARG0_NULLABLE_VARYING, Review Comment: Thanks for your explanation. -- 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: commits-unsubscr...@calcite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org