![]() |
VOOZH | about |
The CData JDBC Driver for Presto enables you to execute queries to Presto data in tools like Squirrel SQL Client. In this article, you will create a JDBC data source for Presto data and execute queries.
Accessing and integrating live data from Trino and Presto SQL engines has never been easier with CData. Customers rely on CData connectivity to:
Presto and Trino allow users to access a variety of underlying data sources through a single endpoint. When paired with CData connectivity, users get pure, SQL-92 access to their instances, allowing them to integrate business data with a data warehouse or easily access live data directly from their preferred tools, like Power BI and Tableau.
In many cases, CData's live connectivity surpasses the native import functionality available in tools. One customer was unable to effectively use Power BI due to the size of the datasets needed for reporting. When the company implemented the CData Power BI Connector for Presto they were able to generate reports in real-time using the DirectQuery connection mode.
Follow the steps below to add the driver JAR.
Follow the steps below to save connection properties in the driver alias.
In the Add Alias wizard that opens, the following fields are required for the JDBC driver:
Set the Server and Port connection properties to connect, in addition to any authentication properties that may be required.
To enable TLS/SSL, set UseSSL to true.
In order to authenticate with LDAP, set the following connection properties:
In order to authenticate with KERBEROS, set the following connection properties:
Below is a typical connection string:
jdbc:presto:Server=127.0.0.1;Port=8080;π Connection properties automatically detected by Squirrel SQL. (Salesforce is shown.)
After the metadata has loaded, a new tab for the Presto data source is displayed. On the Objects subtab, you can discover schema information, such as the available tables and views.
π Column metadata for a table. (Salesforce is shown.)
To view table data, select the table on the Objects tab. The table data is then loaded in a grid on the Content tab.
π Tables can be edited on the Content tab. (Salesforce is shown.)To execute an SQL query, enter the query on the SQL tab and then click Run SQL (the runner icon). For example:
SELECT FirstName, LastName FROM Customer WHERE Id = '123456789'π A query and the results. (Salesforce is shown.)
Download a free trial of the Presto Driver to get started:
Download NowLearn more:
π Presto IconRapidly create and deploy powerful Java applications that integrate with Presto.