Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4877

Make the exception information of class not found more explicit

    XMLWordPrintableJSON

Details

    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:

      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)
      

      And would be great if we have a little bit improvement as follows:

       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?

      Attachments

        Issue Links

          Activity

            People

              sunjincheng121 sunjincheng
              sunjincheng121 sunjincheng
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10h 20m
                  10h 20m