Stemma extracts table and column metadata including database, schema, table name, table description, column name, and column description from a Bigquery database.
What We Need From You
You will need to create a service account for reading metadata and grant it “BigQuery Metadata Viewer” access to all of your datasets. This can all be done via the BigQUery UI.
Next, collect the information Stemma needs, as follows:
- Authorization/Access Scopes:
Stemma uses the following scopes to extract metadata and usage information.
- A JSON Key File: Proceed as follows to create the JSON key file for a service account.
Create a service account (via Cloud Console):
- In the Cloud Console, go to the Create service account page.
- Select a project.
- In the Service account name field, enter a name. The Cloud Console fills in the Service account ID field based on this name.
- In the Service account description field, enter a description. For example, `Service account for Stemma
- Click Create and continue.
- Click the Select a role field, and make sure to select the following:
BigQuery Data Viewer (roles/bigquery.dataViewer)– to extract the metadata, watermarks and usage information. Popular tables will be generated using this information.
BigQuery User (roles/bigquery.user)– Needed to map the user’s information with the Tables i.e., Frequent Users, Table Owners, etc.
Private Logs Viewer (roles/logging.privateLogViewer)– Needed for enriching table usage.
- Click Continue, and click Done to finish creating the service account.
Do not close your browser window. You will use it in the next step.
Create a service account Key:
- In the Cloud Console, click the email address for the service account that you created.
- Click Keys, click Add key, then click Create new key.
- Click Create. A JSON key file is downloaded to your computer.
- Click Close.
Provide the information to Stemma
- Navigate to the Admin tab of the Stemma UI and choose Connections and Add New Connection
- In the pop-up window, choose Google Cloud as the Connection type, provide a Connection Name, and paste in the Service Account Key from the JSON file you have just downloaded.
- When you are finished, click Save Connection.