walterddr commented on code in PR #9554:
URL: https://github.com/apache/pinot/pull/9554#discussion_r990818168
##########
pinot-common/src/main/java/org/apache/pinot/common/function/scalar/ArrayFunctions.java:
##########
@@ -151,4 +151,29 @@ public static double[] arrayConcatDouble(double[] values1,
double[] values2) {
public static String[] arrayConcatString(String[] values1, String[] values2)
{
return ArrayUtils.addAll(values1, values2);
}
+
+ @ScalarFunction
+ public static int arrayElementAtInt(int[] arr, int idx) {
Review Comment:
SQL standard element access starts with 1, which is a bit confusing with
negative indexing in most language. let's leave this out for now. so although
this is a pretty common usage
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]