Before you create a connection to Vertica, create a new database user and schema that is exclusive for your Looker applications. The Looker user needs read and write permissions into a separate schema to store PDTs and read-only privileges to other schemas in the Vertica database. This is optional but recommended.
The following is an example of creating a user and schema for Looker:
Create a Connection to Vertica
In Looker, configure a database connection via the interface. From the Admin section, select Connections then New Connection. More information is on the Connecting Looker to Your Database documentation page.
Enter the connection information in the required fields:
- Name: Give a name to the connection. This is how the LookML model will reference the connection.
- Dialect: Select Vertica from the drop-down of dialects.
- Host: Enter the Vertica server name or IP.
- Port: The default is 5433.
- Database: Enter Vertica’s database name.
- Username and Password: Enter the username and password of the user that will connect to Looker.
- Schema: Enter the schema that contains the tables that you want to explore in Looker.
- Temp Database: This is the scratch schema where you want Looker to create any temporal derived tables to improve performance. It is optional but recommended, and should be created beforehand.
- Max Connections: This is the optional connection pool size. Use the default value.
- Connection Pool Timeout: This is optional. Use the default value.
- Database Time Zone: The time zone your Vertica database uses to store dates and times. For example, UTC. This is optional.
- Query Time Zone: The time zone you want your queries to display. For example, US Eastern (America – New York). This is optional.
- Additional Params: This is optional. Use this field to enable additional database settings. For example, to enable Vertica’s native load balancing, use the JDBC connection parameter
ConnectionLoadBalance=1. To assign a label to identify Looker’s sessions, use the JDBC connection parameter
Label=<mylabel>. You can pass several parameters one after the other using
&, as shown below. For a complete list of available JDBC connection parameters see Vertica’s documentation.
Click on Test These Settings to verify the connection to Vertica is successful. The Testing Database Connectivity documentation page has troubleshooting information.
Click Update Connection to save the connection.
Looker’s ability to provide some features depends on whether the database dialect can support them.
In the current Looker release, Vertica 6 supports the following Looker features:
In the current Looker release, Vertica 7.1+ supports the following Looker features:
After completing the database connection, configure authentication options.