sunjincheng121 commented on a change in pull request #7357: [hotfix] [table] Fix a bound problem for array validation URL: https://github.com/apache/flink/pull/7357#discussion_r243886297
########## File path: flink-libraries/flink-table-common/src/main/java/org/apache/flink/table/descriptors/DescriptorProperties.java ########## @@ -1134,7 +1134,7 @@ public void validateArray(String key, Consumer<String> elementValidation, int mi } // validate array elements - for (int i = 0; i < maxIndex; i++) { + for (int i = 0; i < maxIndex + 1; i++) { Review comment: Good catch! How about using `i <= maxIndex` ? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services