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

Maksim Zhuravkov commented on IGNITE-20677:
-------------------------------------------

[~jooger] Could you please review my PR?

> 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: 10m
>  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