[ 
https://issues.apache.org/jira/browse/IGNITE-20677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17776686#comment-17776686
 ] 

Pavel Pereslegin edited comment on IGNITE-20677 at 10/18/23 1:43 PM:
---------------------------------------------------------------------

Merged to the main branch 
([7953fab|https://github.com/apache/ignite-3/commit/7953fabb2f529241c555e185b6db0e903371969a]).


was (Author: xtern):
Merged 
([7953fab|https://github.com/apache/ignite-3/commit/7953fabb2f529241c555e185b6db0e903371969a]).

> Sql. Improve error reporting in assertThrowsSqlException.
> ---------------------------------------------------------
>
>                 Key: IGNITE-20677
>                 URL: https://issues.apache.org/jira/browse/IGNITE-20677
>             Project: Ignite
>          Issue Type: Improvement
>          Components: sql
>            Reporter: Maksim Zhuravkov
>            Assignee: Maksim Zhuravkov
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.0.0-beta2
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Update SqlTestUtils::assertThrowsSqlException to report error group + error 
> code instead of numeric code.
> Before:
> {code:java}
> org.opentest4j.AssertionFailedError: org.apache.ignite.sql.SqlException: 
> IGN-SQL-6 TraceId:e97b09ee-c698-4ee6-9cba-93506591bab3 Failed to validate 
> query. Table with name 'PUBLIC.TEST' already exists ==> 
> Expected :131073
> Actual   :262150
> {code}
> After:
> {code:java}
> org.opentest4j.AssertionFailedError: Error does not match. 
> org.apache.ignite.sql.SqlException: IGN-SQL-6 
> TraceId:223fe552-f874-474b-beb7-7c7e412c4e1e Failed to validate query. Table 
> with name 'PUBLIC.TEST' already exists ==> 
> Expected :TBL#1
> Actual   :SQL#6
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to