virajjasani commented on code in PR #2280:
URL: https://github.com/apache/phoenix/pull/2280#discussion_r2309121492
##########
phoenix-core-client/src/main/java/org/apache/phoenix/expression/util/bson/UpdateExpressionUtils.java:
##########
@@ -445,10 +455,12 @@ private static void updateArrayAtLeafNode(final String
fieldKey, final BsonValue
final UpdateOp updateOp, final int arrayIdx, final BsonArray nestedArray) {
switch (updateOp) {
case SET: {
- if (arrayIdx < nestedArray.size()) {
- nestedArray.set(arrayIdx, newVal);
- } else {
+ if (arrayIdx >= nestedArray.size()) {
Review Comment:
Is this change intentional? Looks like no logic change?
--
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]