Connectors → Presto

About Presto

Presto is a scalable, open source SQL query engine designed for interactive analytics. It is designed to enable commercial data source speed while scaling with large organizations. Presto is capable of using a single query to combine data from multiple sources without sacrificing responsiveness. Presto acts as an interface, or query service, between Incorta and multiple data sources. As an Incorta Administrator, you only connect to Presto, as a single data source, and gain access to all the data sources Presto is connected to.

About the Presto Connector

The Presto connector supports the following Incorta specific functionality:

Feature Supported
Incremental Load
Encryption at Ingest
Performance Optimization
Webhook Callbacks

Steps to connect Presto and Incorta

To connect Presto and Incorta, here are the high level steps, tools, and procedures:

Create an external data source

Here are the steps to create a external data source with the Presto connector:

  • Sign in to the Incorta Direct Data Platform™.
  • In the Navigation bar, select Data.
  • In the Action bar, select + NewAdd Data Source.
  • In the Choose a Data Source dialog, in Query Service, select Presto.
  • In the New Data Source dialog, specify the applicable connector properties.
  • To test, select Test Connection.
  • Select Ok to save your changes.

Presto connector properties

Here are the properties for the Presto connector:

Property Control Description
Data Source Name text box Enter the name of the data source
Username text box Enter the Presto user email
Password text box Enter the Presto password
Connection Pool text box Enter the connection pool. The default is 30.
Connection String text box Enter the connection string. The format is: jdbc:presto://<PRESTO_HOST>:<PRESTO_PORT>/<CATALOG>/<SCHEMA>
The default port is 8080.
Connection Properties text box Optionally enter connector properties for a custom connection to Presto in the format: propertyName=propertyValue, where each connector property is on a new line.
The available connector properties are specified by presto-jdbc-0.245.jar. Refer to the Presto JDBC Driver Documentation for reference.

Presto Connection String and Data Sources

When you create a connection string to Presto, the URL format supports different access levels to Presto’s data sources. You utilize three aspects of the connection string to Presto to determine the source and scope of the data source.

Standard on most connection strings, you enter the host and port values to connect to Presto. You then can optionally enter the catalog and schema. Without the catalog and schema values, Incorta will connect to the entire Presto data source. The Presto catalog value references a specific data source and all of its schemas. Catalogs are commonly sources such as Apache Hive, MySQL, etc. If you wish to constrain the data source to a specific schema, apply the schema value to the connection string. This will constrain the visibility of data to Incorta down to just the associated schema.

Building a schema from multiple Presto data sources

Since Presto is a query service, you can use the Schema Wizard to build a schema sourced from multiple Presto data sources. If you use a connection string without a catalog or schema, you can build a schema from multiple catalog sources.

Create a schema with the Schema Wizard

Here are the steps to create a Presto schema with the Schema Wizard:

  • Sign in to the Incorta Direct Data Platform.
  • In the Navigation bar, select Schema.
  • In the Action bar, select + New → Schema Wizard.
  • In (1) Choose a Source, specify the following:

    • For Enter a name, enter the schema name.
    • For Select a Datasource, select the Presto external data source.
    • Optionally create a description.
  • In the Schema Wizard footer, select Next.
  • In (2) Manage Tables, in the Data Panel, first select the name of the Data Source, and then check the Select All checkbox.
  • In the Schema Wizard footer, select Next.
  • In (3) Finalize, in the Schema Wizard footer, select Create Schema.
Important

The Schema Wizard will not be able to identify foreign key relationships, or joins, between tables in Presto. After generating the Schema, you will need to manually create the joins in the Schema Designer. The Schema Wizard will still be very helpful in clearly identifying the tables for the desired schema.

Create a schema with the Schema Designer

Here are the steps to create a Presto schema using the Schema Designer:

  • Sign in to the Incorta Direct Data Platform.
  • In the Navigation bar, select Schema.
  • In the Action bar, select + New → Create Schema.
  • In Name, specify the schema name, and select Save.
  • In Start adding tables to your schema, select Presto.
  • In the Data Source dialog, specify the Presto table data source properties.
  • Select Add.
  • In the Table Editor, in the Table Summary section, enter the table name.
  • To save your changes, select **Done **in the Action bar.

Presto table data source properties

For a schema table in Incorta, you can define the following Presto specific data source properties as follows:

Property Control Description
Type drop down list For Presto select SQL Database
Data Source drop down list Select the Presto external data source
Query text box Enter the query to retrieve data from Presto
Callback toggle Turn this option on to enable the Callback URL field
Callback URL text box This property appears when the Callback toggle is turned on. Specify the URL.

View the schema diagram with the Schema Diagram Viewer

Here are the steps to view the schema diagram using the Schema Diagram Viewer:

  • Sign in to the Incorta Direct Data Platform.
  • In the Navigation bar, select Schema.
  • In the list of schemas, select the Presto schema.
  • In the Schema Designer, in the Action bar, select Diagram.

Presto schema diagram

The following is an example of a User Summary schema for a MySQL external data source that utilizes the Presto connector.

Load the schema

Here are the steps to perform a Full Load of the Presto schema using the Schema Designer:

  • Sign in to the Incorta Direct Data Platform.
  • In the Navigation bar, select Schema.
  • In the list of schemas, select the Presto schema.
  • In the Schema Designer, in the Action bar, select Load → Load Now → Full.
  • To review the load status, in Last Load Status, select the date.

Explore the schema

With the full load of the Presto schema complete, you can use the Analyzer to explore the schema, create your first insight, and save the insight to a new dashboard.

To open the Analyzer from the schema, follow these steps:

  • In the Navigation bar, select Schema.
  • In the Schema Manager, in the List view, select the Presto schema.
  • In the Schema Designer, in the Action bar, select Explore Data.

© Incorta, Inc. All Rights Reserved.