[
https://issues.apache.org/jira/browse/IGNITE-15979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maksim Zhuravkov reassigned IGNITE-15979:
-----------------------------------------
Assignee: Maksim Zhuravkov
> Calcite engine. Script test runner ignores "statement error" queries result
> ---------------------------------------------------------------------------
>
> Key: IGNITE-15979
> URL: https://issues.apache.org/jira/browse/IGNITE-15979
> Project: Ignite
> Issue Type: Bug
> Components: sql
> Reporter: Aleksey Plekhanov
> Assignee: Maksim Zhuravkov
> Priority: Major
> Labels: calcite2-required, calcite3-required
>
> Script test runner ignores successful execution for "statement error"
> queries. For example, if a query should fail, but was executed without errors
> test is passed (but should fail).
> To fix it, we should modify {{SqlScriptRunner.execute}} method:
> {code:java}
> IgniteException err = null;
> try {
> sql(qry);
> if (expected != ExpectedStatementStatus.OK)
> err = new IgniteException("Error expected at: " + posDesc + ".
> Statement: " + this);
> }
> catch (Throwable e) {
> if (expected != ExpectedStatementStatus.ERROR)
> err = new IgniteException("Error at: " + posDesc + ". Statement: " +
> this, e);
> }
> if (err != null)
> throw err; {code}
> Ignore new failing script tests and raise a new tickets to investigate and
> fix them.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)