[
https://issues.apache.org/jira/browse/DRILL-7157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16812323#comment-16812323
]
ASF GitHub Bot commented on DRILL-7157:
---------------------------------------
asfgit commented on pull request #1740: DRILL-7157: Wrap SchemaParsingException
into UserException when creating schema
URL: https://github.com/apache/drill/pull/1740
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> 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
> Labels: ready-to-commit
> 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'
> {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)