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

RelBuilder creation fails with error 'No suitable driver found for jdbc:calcite:' in shaded Calcite

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.28.0
    • None
    • None

    Description

      RelBuilder creation fails with error 'No suitable driver found for jdbc:calcite:'. We should not need to initialize a "jdbc:calcite" driver to make a RelBuilder.

      We just tracked down a nasty issue with Calcite being shaded as a dependency in our code that could cause a stack like
       

      No suitable driver found for jdbc:calcite: 
      org/apache/calcite/tools/Frameworks.java:184:in withPrepare 
      org/apache/calcite/tools/RelBuilder.java:225:in create
      

      when calling RelBuilder.create.

      Our fault ultimately, but julianhyde pointed out that Calcite really shouldn't be trying to make a JDBC connection here.

      Attachments

        Issue Links

          Activity

            People

              julianhyde Julian Hyde
              swtalbot Steven Talbot
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: