You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Jan Høydahl (Jira)" <ji...@apache.org> on 2022/03/31 12:30:00 UTC

[jira] [Commented] (SOLR-16131) sql module cannot load Calcite driver

    [ https://issues.apache.org/jira/browse/SOLR-16131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17515303#comment-17515303 ] 

Jan Høydahl commented on SOLR-16131:
------------------------------------

From my email comment:
{quote}
I could reproduce the error
> Failed to load JDBC driver for 'org.apache.solr.handler.sql.CalciteSolrDriver'

And I see that JDBCStream uses a plain Class.forName(driverClassName); to fail early if the driver is wrong.

The sql module is loaded:
> o.a.s.c.NodeConfig Added module sql. libPath=...solr-9.0.0/solr/packaging/build/solr-9.0.0/modules/sql/lib with 9 libs

I wonder if we need to use SolrResourceLoader to load the class in order to find classes in sharedLib. But JDBCStream is in solrj while ResourceLoader is in core... Hmm
{quote}

> sql module cannot load Calcite driver
> -------------------------------------
>
>                 Key: SOLR-16131
>                 URL: https://issues.apache.org/jira/browse/SOLR-16131
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Joel Bernstein
>            Priority: Blocker
>             Fix For: 9.0
>
>
> After adding the sql module, using -Dsolr.modules=sql from the command line on startup, sql queries throw the following error:
>  Failed to load JDBC driver for 'org.apache.solr.handler.sql.CalciteSolrDriver'
> This makes the sql module inoperable.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org