Vaadin 14.8.3 Grid Lazy Loading throw error index out of bound

Hello guys, any example / documentation for Grid lazy loading with DataProvider? I’ve been stuck with Index out of bound error, maybe miss some line code.

Ahh yes I got this error when using nativeQuery.
Thank you.

Are you sure that count and fetch produce the same number?