[ 
https://issues.apache.org/jira/browse/CALCITE-4877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

sunjincheng updated CALCITE-4877:
---------------------------------
    Description: 
Make the exception information of class not found more explicit when we want 
REATE SCHEMA or CREATE TABLE supported.
 when we not add the class to the class path we got the exception as follows:

{code}
Error: Error while executing SQL "CREATE TABLE t (i INTEGER, j VARCHAR(10))": 
Property 'org.apache.calcite.sql.parser.ddl.SqlDdlParserImpl#FACTORY' not valid 
for plugin type org.apache.calcite.sql.parser.SqlParserImplFactory 
(state=,code=0)
{code}

 !image-2021-11-06-07-03-57-742.png! 
 would be great if we can make the error message more explicit , such as: 
"Property 'org.apache.calcite.sql.parser.ddl.SqlDdlParserImpl#FACTORY' not 
valid as 'org.apache.calcite.sql.parser.ddl.SqlDdlParserImpl' not found in the 
classpath."  What do you think?

  was:
Make the exception information of class not found more explicit when we want 
REATE SCHEMA or CREATE TABLE supported.
 when we not add the class to the class path we got the exception as follows:
 !image-2021-11-06-07-03-57-742.png! 
 would be great if we can make the error message more explicit , such as: 
"Property 'org.apache.calcite.sql.parser.ddl.SqlDdlParserImpl#FACTORY' not 
valid as 'org.apache.calcite.sql.parser.ddl.SqlDdlParserImpl' not found in the 
classpath."  What do you think?


> Make the exception information of class not found more explicit
> ---------------------------------------------------------------
>
>                 Key: CALCITE-4877
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4877
>             Project: Calcite
>          Issue Type: Improvement
>          Components: avatica
>            Reporter: sunjincheng
>            Assignee: sunjincheng
>            Priority: Major
>             Fix For: 1.29.0
>
>         Attachments: image-2021-11-06-07-03-57-742.png
>
>
> Make the exception information of class not found more explicit when we want 
> REATE SCHEMA or CREATE TABLE supported.
>  when we not add the class to the class path we got the exception as follows:
> {code}
> Error: Error while executing SQL "CREATE TABLE t (i INTEGER, j VARCHAR(10))": 
> Property 'org.apache.calcite.sql.parser.ddl.SqlDdlParserImpl#FACTORY' not 
> valid for plugin type org.apache.calcite.sql.parser.SqlParserImplFactory 
> (state=,code=0)
> {code}
>  !image-2021-11-06-07-03-57-742.png! 
>  would be great if we can make the error message more explicit , such as: 
> "Property 'org.apache.calcite.sql.parser.ddl.SqlDdlParserImpl#FACTORY' not 
> valid as 'org.apache.calcite.sql.parser.ddl.SqlDdlParserImpl' not found in 
> the classpath."  What do you think?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to