paul-rogers commented on issue #2446:
URL: https://github.com/apache/drill/issues/2446#issuecomment-1027605931


   Thanks @GavinRay97 for the info! This is one of those cases where bug 
becomes a feature. The reason embedded Drill works via JDBC is that most of 
Drill ends up getting sucked into the JDBC driver for no good reason other than 
that the RPC code depends on everything else. That's lucky for you, but not so 
great for folks who just want a simple JDBC driver.
   
   As it turns out, the reason that SqlLine can run an embedded Drill is 
because the JDBC driver contains all the code. But, do we want a JDBC driver to 
include a Spunk connector, a PDF reader, support for Hadoop and all the rest? 
Kind of creates a rather fat client, and all those libraries conflict with that 
the surrounding app wants to do. This is why the JDBC driver build chucks a 
bunch of dependencies overboard.
   
   At some point (maybe Drill 2.0?) we need to create a simpler JDBC driver. At 
that point, the mechanism that you original requested will be needed to start 
the server that the JDBC driver then connects to. We're not there now (far from 
it), but that's kind of where we should head. (There is a whole vector 
discussion that includes this topic.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to