liuyongvs commented on code in PR #3198:
URL: https://github.com/apache/calcite/pull/3198#discussion_r1193138348
##########
core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java:
##########
@@ -3797,6 +3797,14 @@ public static List distinct(List list) {
return new ArrayList<>(result);
}
+ /** Support the ARRAY_REPEAT function. */
+ public static @Nullable List repeat(Object element, Object count) {
+ if (count == null) {
+ return null;
+ }
+ return Collections.nCopies((Integer) count, element);
Review Comment:
@JiajunBernoulli it only can be integer in spark, i comments it before.
```
override def inputTypes: Seq[AbstractDataType] = Seq(AnyDataType,
IntegerType)
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]