lowka commented on code in PR #2271: URL: https://github.com/apache/ignite-3/pull/2271#discussion_r1269917009
########## modules/cli/src/main/java/org/apache/ignite/internal/cli/core/exception/handler/SqlExceptionHandler.java: ########## @@ -57,11 +57,11 @@ public class SqlExceptionHandler implements ExceptionHandler<SQLException> { /** Default constructor. */ public SqlExceptionHandler() { sqlExceptionMappers.put(Client.CONNECTION_ERR, this::connectionErrUiComponent); - sqlExceptionMappers.put(Sql.QUERY_INVALID_ERR, this::invalidQueryErrUiComponent); + sqlExceptionMappers.put(Sql.STMT_PARSE_ERR, this::sqlParseErrUiComponent); } - private ErrorComponentBuilder invalidQueryErrUiComponent(IgniteException e) { - return fromExWithHeader(PARSING_ERROR_MESSAGE, e.code(), e.traceId(), e.getMessage()); + private ErrorComponentBuilder sqlParseErrUiComponent(IgniteException e) { + return fromExWithHeader(PARSING_ERROR_MESSAGE, e.errorCode(), e.traceId(), e.getMessage()); Review Comment: Thanks. Fixed. I submitted this PR prior to this change of error code API and missed it after merging. -- 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