ykisana commented on PR #29628: URL: https://github.com/apache/flink/pull/29628#issuecomment-6434899002
> @snuyanzin I've updated the PR, and appologies for not staying in ticket scope. > > But IndexOutOfBounds is reachable and will throw. > > JsonPath's first() and index(n) never check the array's size before reading. So asking first() on empty or, out of bounds call like index(5) on a 2-element array, will throw a IndexOutOfBoundsException. > > As per PR desc, I did manually review the actual change. > > Do we not care to handle IndexOutOfBoundsException at all, if so, curious why? If we want to handle it, should I do a separate ticket for it? I guess better call would be to check in JsonPath. Regardless, not here. I can open a separate ticket for this. -- 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]
