[
https://issues.apache.org/jira/browse/DRILL-7157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arina Ielchiieva updated DRILL-7157:
------------------------------------
Description:
When there is an error during schema parsing we should throw UserException but
not system:
{noformat}
apache drill>create or replace schema (col iint) for table dfs.tmp.text_table;
Error: SYSTEM ERROR: SchemaParsingException: Line [1], position [5], offending
symbol [@2,5:8='iint',<47>,1:5]: no viable alternative at input 'coliint'
Please, refer to logs for more information.
{noformat}
After changes exception will be the following:
{noformat}
apache drill> create or replace schema (col iint) for table dfs.tmp.text_table;
Error: PARSE ERROR: Line [1], position [5], offending symbol
[@2,5:8='iint',<47>,1:5]: no viable alternative at input 'coliint'
Schema: (col iint)
{noformat}
was:
When there is an error during schema parsing we should throw UserException but
not system:
{noformat}
apache drill>create or replace schema (col iint) for table dfs.tmp.text_table;
Error: SYSTEM ERROR: SchemaParsingException: Line [1], position [5], offending
symbol [@2,5:8='iint',<47>,1:5]: no viable alternative at input 'coliint'
Please, refer to logs for more information.
{noformat}
> Wrap SchemaParsingException into UserException when creating schema
> -------------------------------------------------------------------
>
> Key: DRILL-7157
> URL: https://issues.apache.org/jira/browse/DRILL-7157
> Project: Apache Drill
> Issue Type: Bug
> Reporter: Arina Ielchiieva
> Assignee: Arina Ielchiieva
> Priority: Major
> Fix For: 1.16.0
>
>
> When there is an error during schema parsing we should throw UserException
> but not system:
> {noformat}
> apache drill>create or replace schema (col iint) for table dfs.tmp.text_table;
> Error: SYSTEM ERROR: SchemaParsingException: Line [1], position [5],
> offending symbol [@2,5:8='iint',<47>,1:5]: no viable alternative at input
> 'coliint'
> Please, refer to logs for more information.
> {noformat}
> After changes exception will be the following:
> {noformat}
> apache drill> create or replace schema (col iint) for table
> dfs.tmp.text_table;
> Error: PARSE ERROR: Line [1], position [5], offending symbol
> [@2,5:8='iint',<47>,1:5]: no viable alternative at input 'coliint'
> Schema: (col iint)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)