The Looker Data Dictionary is different from the Data Dictionary Block.
To enjoy full functionality of the Looker Data Dictionary extension, admins should update the Looker Data Dictionary application to version 2.0.0 or later.
The Looker Data Dictionary is an extension — a web application built using Looker components — developed using the Looker extension framework and deployed through the Looker Marketplace.
The Looker Data Dictionary extension provides a dedicated, centralized interface for searching through all your Looker fields and descriptions. Use this extension to:
- Provide a searchable directory for all metrics and descriptions for users to identify the appropriate dimension or measure for analysis
- Make it easy for external stakeholders to identify and locate unique metrics
- Audit LookML models to assess whether consistent naming conventions are followed, whether there are redundant fields, or whether fields are annotated with descriptions
- Add and share comments about specific fields (if your Looker Data Dictionary application is on version 2.0.0 or later)
For users to access and use the Looker Data Dictionary, Looker admins must:
- Enable the appropriate features.
- Install the Looker Data Dictionary extension.
- Grant permissions to access the Looker Data Dictionary.
Once the extension is available to users, you can:
Installing the Looker Data Dictionary
Before installing the Looker Data Dictionary from the Marketplace, Looker admins must enable these features:
- Marketplace: To access the Looker Marketplace (enabled by default)
- Extension Framework: To deploy extensions developed using the Looker extension framework (enabled by default)
Installing applications and tools — such as extensions — from the Marketplace requires that you have the develop
, manage_models
, and deploy
permissions.
See the Using the Looker Marketplace documentation for instructions on installing a tool from the Looker Marketplace. You can ensure that you always have the most updated version of the Data Dictionary by going to the Looker Marketplace, clicking Manage, and clicking the Update button next to the extension.
Your Looker instance must be on Looker 7.18 or later to install version 2.0.0 or later of the Looker Data Dictionary extension. Instances on Looker 7.6 through 7.16 are compatible with Looker Data Dictionary versions earlier than 2.0.0.
Granting permissions to access the Looker Data Dictionary
After the Looker Data Dictionary is installed, a model called data-dictionary
is automatically added to the list of available models on the New Model Set and Edit Model Set pages, accessible from the Roles page in the Admin panel.
Looker admins must grant users explore
or develop
permissions to access the data-dictionary
model and any models they need to explore in the Data Dictionary. See the Setting permissions for Looker extensions documentation page for information on granting users permissions to access and use extensions.
Granting permissions to interact with field comments
Field comments provide users with the ability to add context to field definitions without having to update any LookML. By default, all users who have access to the data dictionary extension will be able to see all comments, and add, edit, and delete their own comments.
If desired, Looker admins can manage how users interact with the field comment functionality by creating specific user groups on the Groups page of the Admin panel and assigning users to those groups. See the Groups documentation page for more information about how to assign users to groups.
Looker admins must create these groups with the pre-defined names as shown below.
The user groups must be created with the pre-defined names shown in the table below. The table also shows the pre-defined privileges that users assigned to each group will have.
If a user doesn’t belong to any of these groups, they will default to writer
. If a user is assigned to multiple groups (not including marketplace_data_dictionary_comments_disabled
), their more elevated privilege takes precedence.
Changes to a comments group, such as adding or removing a user, that are made via the Groups page in the Admin panel will take effect after a hard refresh of the Data Dictionary page or after the user clicks away and then returns to the Data Dictionary page.
Navigating to the Looker Data Dictionary
You can navigate to the Data Dictionary from:
The list of installed applications and extensions in the left sidebar.
The Looker Marketplace under Applications. Click the Data Dictionary tile, click Open, and click on the Data Dictionary icon.
Viewing model metadata with the Looker Data Dictionary
In the Looker Data Dictionary, users with explore
permissions on a model can select this model and view its metadata, including its Explores and each Explore’s list of fields, grouped by view. The Looker Data Dictionary displays the selected model’s Explores in the left sidebar and the selected Explore’s views and fields on the main part of the page.
Users can collapse the sidebar by clicking the < icon.
The Looker Data Dictionary shows:
- The name of the selected model
- The list of Explores contained in the selected model
- The selected Explore
- A text field to filter the fields in an Explore
- Quick filters to narrow displayed fields based on selected characteristics
- The name of the view
- Metadata about each field. Select what metadata is displayed by clicking the View Options button. See the field’s entire set of metadata in the field profiler.
- Rows containing metadata for each field in a given view
- Navigation to the Explore in the Looker UI
Selecting a model and an Explore
The Select a Model drop-down lists all the models for which a user has explore
permissions. When choosing a model from the Select a Model drop-down menu, the left sidebar will populate with a list of that model’s Explores.
You can also search the selected model for a specific Explore by typing in the Search Model search box. The list of Explores will filter to display only the results that match your search terms.
Click on the name of an Explore to see its fields, grouped by view, displayed on the main part of the page.
You can also click the Explore button in the upper right corner to go straight to the Explore page in Looker.
Filtering fields in an Explore
You can filter the displayed fields by typing text into the Filter fields in this Explore box to match against the list of fields’ Field Label or Description.
You can also select specific metadata attributes to filter on, such as whether the field:
- Has a description
- Is a dimension or a measure
- Has tags
- Has type string, number, date, zipcode, count, sum, average, list, or unquoted
Viewing field metadata
The Looker Data Dictionary displays the metadata for an Explore’s fields, grouped by view:
- Field Label: The field name according to the field’s
label
parameter - Category: The field category as a dimension or a measure
- Description: The field’s description according to the field’s
description
parameter - LookML Name: The field name in
view_name.field_name
syntax - Type: The field type as string, number, date, zipcode, count, sum, average, list, or unquoted according to the field’s
type
parameter - SQL: The SQL expression that references that field
- Tags: The LookML tags associated with that field
Customizing displayed metadata
You can specify what metadata is displayed for each field by clicking the View Options button in the upper right corner and checking or unchecking the boxes for metadata you want to view:
Using field comments
If an instance already has Marketplace, admins should ensure that the Data Dictionary extension is on version 2.0.0 or later to use field-level comments.
LookML developers often include additional information or explanations about a model’s fields in the field-level description
parameter. However, these descriptions are not always meaningful or useful to all users. With field-level comments, users can add context to a specific field. These comments are viewable by other users but will not affect the model’s underlying LookML.
Admins must grant users the ability to interact with comments by adding them to specific groups on the Groups page of the Admin panel. By default, all users with access to the data dictionary extension can view all comments and add, edit, and delete their own comments.
Adding a field comment
To add a comment to a field:
- Hover over the field row to reveal a + icon (if there are no existing field comments) or a notepad icon (if a field has existing comments). Click the icon to open the Comments tab of the field profiler panel.
- Click the Add Comment button.
- Type your comment and click the Comment button to save your entry. Click Cancel to close the field profiler. You can expand the comment box by clicking and dragging the bottom right corner.
Once a comment has been added, it appears on the Comments tab of the field profiler and is viewable to other users.
Viewing field comments
When a field includes comments, a notepad icon appears with the number of comments that exist on that field. Click the notepad icon to view the field’s comments listed in the Comments tab of the field profiler.
The number of comments on that field is also indicated in parentheses on the Comments tab. Each comment entry shows the following information:
- The commenter’s name
- The timestamp showing when the comment was added
- A preview of the comment
Editing or deleting a field comment
You can edit or delete your own field comments:
- Click on the field’s notepad icon.
- On the Comments tab, locate and hover over the comment that you would like to edit or delete.
- Click the three-dot menu, and select Edit Comment to edit the comment or Delete Comment to delete the comment. If you’re deleting the comment, confirm your intention.
- If you’re editing your comment, click Save once you’ve made your changes.
Sharing a field comment
The URL of the Comments tab for each field is unique and can be copied and shared with other users who have access to that model in the Looker Data Dictionary.
Using the field profiler
Clicking on a specific field row will open a field profiler panel on the right of the page displaying the field’s entire set of metadata, options to preview numeric dimension values, and buttons to navigate to the Looker IDE or the Explore page:
If you are using version 2.0.0 or later of the Looker Data Dictionary extension, the field profiler opens by default to the Details tab.
Under Distribution, click Calculate to show a preview of a column chart depicting the distribution of the count values for numeric dimensions on a view with a measure that has type: count
. The Distribution section will also display the minimum, maximum, and average values of the numeric dimension series.
Under Values, click Calculate to show a preview of count values for numeric dimensions on a view with a measure that has type: count
. Click the Explore More button to open the Explore UI with the numeric dimension and count measure pre-selected from the field picker.
Click Go to LookML to open the view file from the LookML project associated with the selected model in the Looker IDE.
Click the Explore with Field button to open the Explore page with that field automatically selected from the field picker.