That sounds like a good idea. The JDBC example has a
Class.forName("org.apache.drill.jdbc.Driver") statement to force driver
registration, but a ServiceLoader registration is pretty standard. Maybe
you should open a bug for it?Laurent On Tue, Sep 6, 2016 at 9:53 AM, Sudip Mukherjee <[email protected]> wrote: > Hi, > I am trying out a java program where I want to load drill JDBC driver > using ServiceLoader.load like all other jdbc drivers. But the code is > failing to load org.apache.drill.jdbc.Driver class. One possible reason > Is that the drill jdbc driver jar doesn't have a java.sql.Driver file > under META_INF/services which is common for all the other driver jars. > > Can the drill jdbc driver jar come with the driver file? > > Thanks, > Sudip >
