rcjverhoef opened a new issue, #11142:
URL: https://github.com/apache/iceberg/issues/11142

   ### Apache Iceberg version
   
   1.6.1 (latest release)
   
   ### Query engine
   
   None
   
   ### Please describe the bug 🐞
   
   The calls to do pagination of namespaces, tables and views throws unexpected 
exceptions. 
   
   For example, if you have 10 namespaces and you request a page of size 100: 
the current code blows up. The problem is that the logic does use 
`List.subList` with a start and end index. The end-index is calculate as the 
start + pagesize. But poor java doesn't like it if end-index is bigger than the 
list size.
   
   ### Willingness to contribute
   
   - [X] I can contribute a fix for this bug independently
   - [X] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


-- 
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]

Reply via email to