clintropolis commented on a change in pull request #11233:
URL: https://github.com/apache/druid/pull/11233#discussion_r632811344
##########
File path:
sql/src/main/java/org/apache/druid/sql/calcite/expression/builtin/ArrayOffsetOperatorConversion.java
##########
@@ -39,16 +38,15 @@
.operandTypeChecker(
OperandTypes.sequence(
"(array,expr)",
- OperandTypes.or(
- OperandTypes.family(SqlTypeFamily.STRING),
- OperandTypes.family(SqlTypeFamily.ARRAY),
- OperandTypes.family(SqlTypeFamily.MULTISET)
- ),
+ OperandTypes.or(
+ OperandTypes.family(SqlTypeFamily.ARRAY),
+ OperandTypes.family(SqlTypeFamily.STRING)
+ ),
OperandTypes.family(SqlTypeFamily.NUMERIC)
Review comment:
ah yeah, that probably could stand to be a bit further restricted
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]