AMashenkov commented on code in PR #3626: URL: https://github.com/apache/ignite-3/pull/3626#discussion_r1574534112
########## modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/api/IgniteSqlImpl.java: ########## @@ -327,11 +322,12 @@ public <T> CompletableFuture<AsyncResultSet<T>> executeAsync( private CompletableFuture<AsyncResultSet<SqlRow>> executeAsyncInternal( @Nullable Transaction transaction, - String query, - int pageSize, + Statement statement, @Nullable Object... arguments ) { - assert pageSize > 0 : pageSize; + assert statement.pageSize() >= 0 : statement.pageSize(); Review Comment: I guess no, because Statement is an interface. Maybe, we can move all assertions to a validate method and throw validation exception instead? -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org