Looker
Connection Setup
Create a connection and set up JDBC parameters to configure a connection.
Use catalog to choose workspace and branch.
Each workspace branch is a separate connection.
Different branch connections can be used interchangeably with the same Honeydew explore.
Metadata Sync
Looker relies on LookML views to query data. Honeydew can create LookML and synchronize all associated metadata.
Honeydew will synchronizes the following metadata to LookML:
- Fields - every attribute in the field is defined as a Looker dimension, and every metric as a Looker measure.
- Field data types.
- Field display names (to
label
LookML field property). When no display name is set, Honeydew creates an automatic user friendly name. - Field folders (to
view_label
LookML field property). When no folder is set, Honeydew uses the entity name as folder names. - Field hidden property (to
hidden
LookML field property). - Field descriptions (to
description
LookML field property).
The recommended approach is use Honeydew to generate LookML. However, it is possible to use the connection directly and manually create a LookML view on top of it. Note that in that case the the continuous updates are manual as well.
Functionality
Honeydew supports Looker Explore over the shared semantic layer.
Groups and Pivots
Any Honeydew attribute can be used as a Looker dimension for groups and pivots.
Measures
Any Honeydew metric can be used as a measure (aggregation) in Looker.
If you want to use a metric as a dimension, define it as a calculated attribute in Honeydew first.
Filters
Any Honeydew attribute or metric can be used as a Looker filter.
Filters are automatically pushed down to the source in order to optimize performance.
Cross-entity queries
Any entity in Honeydew can be used in an Explore.
Joins are automatically constructed by Honeydew. They are based on the relationships between entities that are used in a particular user Explore query.
Custom dimensions and measures
Custom dimensions such as binning, custom groups, unique value list dimension and Looker functions in custom field definitions are automatically converted to Honeydew attributes.
Custom measures such as an ad-hoc average or sum of a dimension are automatically converted to Honeydew metrics.
If you want to reuse a custom measure or a custom dimension defined in Looker: save it in Honeydew to a named attribute or metric.
That way, the code to compute it moves to the shared semantic layer.
User attributes and parameters
User attributes and parameters can be passed to Honeydew parameters using the parameter SQL interface as part of an explore definition.
Explore configuration
Looker Explores can be based on domains in Honeydew.
Common Looker functionality maps to domains:
- Per explore filters (
access_filter
,sql_always_where
,sql_always_having
in LookML) can be modeled as domain filters.
Domains
Honeydew domains can be mapped to Looker Explores.
Domains can be used to define centrally things such as:
- Access filters (instead using LookML such as
always_filter
) - Customized join relations (instead of setting
join
-s in LookML)
To use a domain, use it as an explore source table, such as :
User attributes and Parameters
Parameters can be passed to the Honeydew SQL interface via the FROM statement.
Looker user attributes and LookML parameters can be both used to pass down to an explore based on world or on a domain:
Limitations
- Filtered measures in an Explore over Honeydew metrics are not supported. Create a Honeydew filtered metric instead.
- Persistent Derived Tables (PDTs) are not supported. See performance acceleration in Honeydew for alternative performance approaches.
- Joins in an Explore between Views on Honeydew datasets are not supported. Instead, build a single Looker View with all the required entities, and Honeydew will figure out the needed joins.
Setting up a new Connection
Looker connects to Honeydew via JDBC connection, using the Trino protocol.
The Honeydew JDBC connection translates Looker Trino SQL to Snowflake SQL.
Looker connections are mapped to a Honeydew workspace and branch
It is recommended to use an API Key for setting up the connection.
- Go to Create and then click on Connection
- Provide a Name for the connection (e.g. “Honeydew”) and choose the desired Connection Scope
- In the Dialect field, choose Trino from the list of supported dialects
- Set Host to
jdbc.honeydew.cloud
If your organization uses a custom hostname for the JDBC connection, you can locate it in the Honeydew UI, under the JDBC section in Settings.
- Set Port to
443
- Set Database to
<workspace>__<branch>
value, based on the Honeydewworkspace
andbranch
you would like to connect to. Omit the branch value if connecting toprod
. For example, for workspacetpch
, branchprod
, the value would be:tpch
. And for workspacetpch
, branchdev
, it would betpch__dev
. - In Authentication, choose
Database Account
- Set Username to the API key (or a Honeydew username), and Password to the API secret (or to the user’s password in Honeydew).
- In Optional Settings, expand Additional Settings, and then switch on the Verify SSL toggle, if not already turned on.
- Click Test to verify the connection settings
- Click Connect to connect to the newly created Honeydew connection
You can now use the newly built datasource to integrate Honeydew with Looker.
LookML
Use Honeydew to generate a LookML file.
The LookML for a Honeydew dataset will look similar to this:
Was this page helpful?