danny0405 commented on a change in pull request #1426: [CALCITE-3313] Override
getAllowedSignatures function for SqlRegexpReplaceFunction.
URL: https://github.com/apache/calcite/pull/1426#discussion_r319496048
##########
File path:
core/src/main/java/org/apache/calcite/sql/fun/SqlRegexpReplaceFunction.java
##########
@@ -72,6 +75,25 @@ public SqlRegexpReplaceFunction() {
}
return true;
}
+
+ @Override public String getAllowedSignatures(String opName) {
+ final StringBuilder ret = new StringBuilder();
+ ret.append(
+ SqlUtil.getAliasedSignature(this, opName,
+ ImmutableList.of(SqlTypeName.CHAR_TYPES,
+ SqlTypeName.CHAR_TYPES,
+ SqlTypeName.CHAR_TYPES)));
+ ret.append(NL);
+ ret.append(
+ SqlUtil.getAliasedSignature(this, opName,
+ ImmutableList.of(SqlTypeName.CHAR_TYPES,
+ SqlTypeName.CHAR_TYPES,
+ SqlTypeName.CHAR_TYPES,
+ SqlTypeName.INT_TYPES,
+ SqlTypeName.INT_TYPES,
Review comment:
The last 3 arguments are all optional.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services