xtern commented on code in PR #6383: URL: https://github.com/apache/ignite-3/pull/6383#discussion_r2267005193
########## modules/client-handler/src/main/java/org/apache/ignite/client/handler/requests/sql/ClientSqlCommon.java: ########## @@ -196,4 +201,34 @@ static void packColumns(ClientMessagePacker out, List<ColumnMetadata> cols) { } } } + + static Set<SqlQueryType> unpackAllowedQueryTypes(ClientMessageUnpacker unpacker) { + int size = unpacker.unpackByte(); + Set<SqlQueryType> result = EnumSet.noneOf(SqlQueryType.class); + + for (int i = 0; i < size; i++) { + byte typeId = unpacker.unpackByte(); Review Comment: now the allowed request types are packed as a set of bits. -- 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