julianhyde commented on a change in pull request #2230:
URL: https://github.com/apache/calcite/pull/2230#discussion_r513668034
##########
File path: core/src/main/java/org/apache/calcite/sql/fun/SqlItemOperator.java
##########
@@ -115,7 +115,8 @@ private SqlSingleOperandTypeChecker
getChecker(SqlCallBinding callBinding) {
@Override public String getAllowedSignatures(String name) {
return "<ARRAY>[<INTEGER>]\n"
- + "<MAP>[<VALUE>]";
+ + "<MAP>[<VALUE>]\n"
+ + "<ROW>[<CHARACTER>|<INTEGER>]";
}
Review comment:
In signatures, I believe the terms in angle brackets are always data
types. So, `<MAP>[<ANY>]` would be appropriate. Take a look at other
implementations of `SqlOperator.getAllowedSignatures(String)` to confirm.
----------------------------------------------------------------
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]