yanlin-Lynn commented on a change in pull request #1426: [CALCITE-3313]
Describe the end-user functionality of REGEXP_REPLACE
URL: https://github.com/apache/calcite/pull/1426#discussion_r321122343
##########
File path: core/src/main/java/org/apache/calcite/sql/SqlOperator.java
##########
@@ -192,8 +192,9 @@ public SqlOperandTypeChecker getOperandTypeChecker() {
* @return acceptable range
*/
public SqlOperandCountRange getOperandCountRange() {
- if (operandTypeChecker != null) {
- return operandTypeChecker.getOperandCountRange();
+ SqlOperandTypeChecker checker = getOperandTypeChecker();
Review comment:
In case the sub class of SqlOperator override the `getOperandTypeChecker`
function, but pass a null value of `operandTypeChecker` in constructor, use
`getOperandTypeChecker` function instead of access `operandTypeChecker`
directly.
----------------------------------------------------------------
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