In this Article:
- Overview
- Setting Up Snowflake for DvSum Integration
- Steps to Configure Snowflake as a Source
- Review Data Dictionary
- Video Tutorial
Overview
This article outlines the process of configuring Snowflake as a data source in DvSum, enabling integration for data cataloging and profiling. The steps provided apply to both DvSum Data Insights (DI) and DvSum Data Quality (DQ), with only minor variations based on the specific platform.
Setting Up Snowflake for DvSum Integration
Before configuring Snowflake in DvSum, a dedicated user and role must be created with the appropriate privileges for metadata access. Additionally, specific account-level grants are required to enable access to query history and data lineage information.
Before proceeding with the source configuration in DvSum, follow the steps below to set up Snowflake with the required user, role, and privileges.
User and Role Configuration for Metadata Access
1. Metadata Access Configuration
To enable cataloging and profiling in DvSum, a Snowflake user must have access to metadata such as tables and columns. How this access is granted may vary depending on internal Snowflake policies.
The script below is a sample only and can be adapted as needed. It’s not required to run this script as-is — the key requirement is that the user should be able to execute the following test queries successfully.
Test Queries – Required Metadata Access
These queries can be used to confirm that the user has sufficient access to metadata:
Sample Script – User and Role Creation
If a suitable user and role are not already available, the following script can be used as a reference to create them with minimal, controlled access. This is one possible approach — feel free to adapt or implement based on your organization’s standards.
Before executing the script, update the placeholders (<USERNAME>, <PASSWORD>, <ROLE_NAME>, <WAREHOUSE>, etc.) with appropriate values for your Snowflake environment.
2. Lineage Access Configuration
To enable query history and lineage extraction in DvSum, the user must have access to Snowflake’s ACCOUNT_USAGE views and the appropriate privileges.
As with the previous section, the goal is for the user to be able to successfully run the test queries below. If that works, lineage-related access is correctly configured. The grants script provided afterward is a reference, not a requirement to follow exactly.
Steps to Configure Snowflake as a Source
Step 1: Add Snowflake as a Source
-
- Click the Add Source button.
- In the modal that appears:
- Select Snowflake as the data source.
- Provide a meaningful Source Name.
- Click Save.
Step 2: Environment Assignment
If Environments are enabled in the application, users can assign the Data Source to an Environment (for example, Development, UAT, or Production) and associate it with a Logical Source.
Environment assignment helps organize Data Sources across different deployment stages, while Logical Sources represent the same business dataset across multiple environments. Together, they support environment-aware asset promotion and management.
To assign an Environment and Logical Source:
- Open the Data Source details page --> Settings --> General.
- Select the appropriate Environment.
- Select or create a Logical Source, if applicable.
- Save the changes.
For detailed information about configuring and managing Environments and Logical Sources, refer to the Environment Management article.
Step 3: Configure Connection Settings
After saving, the system redirects to the Connection Settings page.
Enable the checkbox for On-premise Web Service (if applicable).
Select the SAWS that is set up and currently running.
Note: By Default the SAWS type will be cloud. For more information regarding Cloud SAWS, click here
Authentication Type
DvSum supports two authentication methods for connecting to Snowflake:
Option 1: Username & Password (Default)
Select Username & Password from the Authentication Type dropdown, then provide the following details:
- URL
- Warehouse
- Database Login (Username)
- DB Password
Click Authenticate to validate the connection.
Option 2: Key Pair Authentication
This method uses a private key instead of a password and is recommended for enhanced security.
Select Key Pair from the Authentication Type dropdown, then provide the following details:
- Username – Snowflake user name
-
Private Key – One of the following options:
- Upload Key File – Upload the private key file
- Paste Key Content – Paste the private key content directly
- Private Key Passphrase (optional) – Required if the key is encrypted
Click Authenticate to validate the connection.
Step 4: Select Database & Schema
- Once authenticated, the Database Selection section appears.
- Choose the database you need to scan (only one database can be selected).
-
Choose one of the following options:
Scan all schemas (leave the schema checkbox unchecked).
Scan specific schemas (check the schema checkbox and select schemas from the list).
Once it is checked then the list of available schemas will be displayed. User can select single or multiple schemas from the Available Schemas list and move them to the Selected Schemas tab on the right.
Step 5: Save the Source Configuration
- Scroll to the top of the page.
- Click the Done button in the top-right corner.
- Click Save to complete the setup.
Note: When adding or editing a Data Source, if incorrect details or invalid credentials are entered, it will still allows to save the Data Source. However, authentication will fail, and the Data Source will be marked as unusable with a red icon. The Data Source will not be usable until the correct credentials are provided.
The connection is saved, but it cannot be used until valid authentication details are updated.
Step 6: Run a Scan
- Navigate to the Scan History page.
- Click the Scan Now button.
- A job will be created, and once the status shows Completed, the scan will be successful.
After the scan completion, click on Execution ID and it will open the Scan Execution page of this scan.
On the Execution Summary page, it will show all the insights of the scan i.e how many new tables and columns are fetched in this scan from the schemas we selected earlier.
Review Database Tables
- Navigate to the Dictionary tab from the sidebar.
- Click on the Recently Refreshed tab.
- This tab displays all tables fetched in the most recent scan.
- Click on the table name to access more detailed metadata and structure information.
By following these steps, you can successfully integrate Snowflake as a source in DvSum, enabling advanced data profiling and cataloging capabilities.
Video tutorial:
Watch this quick video tutorial of how to add and configure an Snowflake source into DvSum app.
0 Comments