-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add generic jdbc datasource connector #2910
Comments
OH, very very interesting. I might be willing to take this one on. It would help so many people, myself included. |
Anyone have doc's for a skeleton connector so I can fill in the blanks? I assume there is a test harness for local development (thus not having to develop within the Presto server itself). Unit testing framework? Maybe containerized tests for each connector? |
Would you recommend adding test for https://github.com/bloomberg/comdb2 To this JDBC connector? |
@dprophet did it work? pls write one :-) |
what happened here? I am looking for an informix connector, and it seems that would be the solution ... any updates? |
@flypenguin see the linked PR (also use the 4 updated .java files in the root of https://github.com/tooptoop4/presto-1/tree/lightgenjdbc for 348-SNAPSHOT with fixes). you can build from source and use it. it has been successfully tested against: some recommended settings in .properties: |
@flypenguin Implementing JDBC based connector is easy comparing to other connectors. Please feel free to |
@flypenguin adding to @ebyhr 's comment -- you can see ongoing PR for inspiration, like #6134 or #4909 |
Looks like starburst build this. It would be nice if they could commit something to upstream trino https://docs.starburst.io/latest/connector/starburst-generic-jdbc.html |
JDBC connector can provide the ability to connect to Hive via Knox. So, any progress here, guys? |
There are no plans to implement such a connector for now. Instead there is a example JDBC connector which can be used to bootstrap a proper connector - #15004 Also in practice for good performance pushdowns and type mappings need to be implemented on a per-connector basis anyway. |
I'm not talking about client->jdbc driver->presto server. I'm talking about presto server connector to any jdbc source (ie sybase, oracle.etc).
List of columns can be derived by running where 1=0 query like spark does:
apache/spark@64c29af
https://docs.starburstdata.com/latest/connector/generic-jdbc.html
https://www.simba.com/drivers/ , https://www.dbvis.com/features/database-drivers/ , https://en.wikipedia.org/wiki/List_of_relational_database_management_systems show a list of many different data sources this would open up connectivity to.
some examples:
Unidata: com.ibm.u2.jdbc.UniJDBCDriver
kdb: https://github.com/bjconlan/kdb-jdbc
MS Access: sun.jdbc.odbc.JdbcOdbcDriver
SQLLite: org.sqlite.JDBC
SAS: com.sas.net.sharenet.ShareNetDriver
SAP: com.sap.db.jdbc.Driver
Greenplum: com.pivotal.jdbc.GreenplumDriver
DynamoDB: com.simba.dynamodb.jdbc.Driver
Netezza: org.netezza.Driver
Vertica: com.vertica.jdbc.Driver
Clickhouse: ru.yandex.clickhouse.ClickHouseDriver
Sybase: com.sybase.jdbc4.jdbc.SybDriver
Impala: com.cloudera.impala.jdbc41.Driver
SparkSQL ThriftServer: com.simba.spark.jdbc41.Driver
H2: org.h2.Driver
Derby: org.apache.derby.jdbc.ClientDriver
HiveServer2: org.apache.hive.jdbc.HiveDriver
Drill: org.apache.drill.jdbc.Driver
Teradata: com.ncr.teradata.TeraDriver
Snowflake: net.snowflake.client.jdbc.SnowflakeDriver
DB2: com.ibm.db2.jcc.DB2Driver
Salesforce: com.ddtek.jdbc.sforce.SForceDriver
Azure CosmosDB: cdata.jdbc.cosmosdb.CosmosDBDriver
Athena: com.simba.athena.jdbc.Driver
Aurora: org.mariadb.jdbc.Driver
Informix: com.informix.jdbc.IfxDriver
Firebird: org.firebirdsql.jdbc.FBDriver
...and many more
Cons:
Pros:
The text was updated successfully, but these errors were encountered: