[ https://issues.apache.org/jira/browse/IGNITE-24179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17912604#comment-17912604 ]
Mikhail Pochatkin commented on IGNITE-24179: -------------------------------------------- Cherry-pick to ignite-3.0 3ff710989f179e807f0b3a5cd008cf02bf3ea4c1 > CLI. SQL Repl reports any SQL exception as Unknown error > -------------------------------------------------------- > > Key: IGNITE-24179 > URL: https://issues.apache.org/jira/browse/IGNITE-24179 > Project: Ignite > Issue Type: Bug > Components: cli > Reporter: Maksim Zhuravkov > Assignee: Mikhail Pochatkin > Priority: Major > Labels: ignite-3 > Fix For: 3.0 > > Time Spent: 20m > Remaining Estimate: 0h > > Every SQL exception is reported as Unknown error: > {noformat} > [node1]> sql > sql-cli> SELECT 1/0; > Unknown error > Division by zero > sql-cli> SELECT * FROM meh; > Unknown error > Failed to validate query. From line 1, column 15 to line 1, column 17: Object > 'MEH' not found > sql-cli> > {noformat} > There is SqlExceptionHandler in CLI module that handles SQLExceptions but > SqlReplCommand does not add it to its pipeline. When I add it, I got this > output instead: > {noformat} > sql-cli> SELECT 1/0; > SQL query execution error > Division by zero > sql-cli> SELECT * FROM meh; > SQL query execution error > Failed to validate query. From line 1, column 15 to line 1, column 17: Object > 'MEH' not found > sql-cli> > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)