Select the user authentication mechanism from the dropdown. RudderStack supports Username Password Authentication and Key Pair Authentication.
Account
Specify the warehouse account ID that is a part of your Snowflake URL, for example, qya56091.us-east-1
Database
Enter the name of the database in which your data resides.
Warehouse
Specify the name of your data warehouse.
User
Enter the name of the user that has the required read/write access to the above database.
Role
Specify the role you want to assign to the above user. For syncing the data, you can use this role apart from the default role (RUDDER_ROLE) you created above.
Password
If authentication is set to Username Password Authentication, enter the password for the user specified in the User field.
Private Key
If authentication is set to Key Pair Authentication, enter the generated private key and make sure to include the delimiters.
Private Key Passphrase
If your private key is encrypted, specify the password you set while encrypting the private key.
Note: The user authentication will fail if your private key is encrypted and you do not specify the passphrase.
Navigate to Activate > Data Graph in the RudderStack dashboard.
In the Connect warehouse section, select the warehouse connection from the list of available connections. If there is no warehouse connection available, click Add account to create a new connection.
Note that:
To create a data graph, your RudderStack workspace must have at least one warehouse connection configured.
You can only connect one warehouse account to a data graph.
RudderStack supports the following warehouses currently:
Click Connect to connect the warehouse account to the data graph.
At this point, the data graph base definition (warehouse connection context) is established. You can now start defining the entities and events for the data graph.
2: Create an entity model
In the Add component section, select Entity model.
Choose the relevant Database, Schema, Table for the entity model.
Select the relevant Primary key from the dropdown.
To set the entity model as a root model, select Yes from the dropdown. Then, click Next.
Provide a name and description for the entity model.
Click Create to save the model.
You can now continue by adding more models to the data graph.
3: Create an event model
In the top right corner, click Add component and select Event.
Select the relevant Database and Schema for the event model.
If you configured a root model in the previous step, the Database and Schema fields will be pre-populated with the relevant values.
In the Table field, select a relevant table from the dropdown that contains timestamp information.
Select the relevant timestamp from the dropdown — this field defines the dimension of this event model. Then, click Next.
Provide a name and description for the event model.
Click Create to save the model.
You now have two models on the canvas of your data graph — an entity model and an event model.
4: Create relationships between models
There are two ways to create relationships between models:
Click on the model from which you want to start the relationship.
Click Add relationship under Relationships.
In the relationship configuration view, select one of the existing models — you can also create a new model. Then, click Next.
Provide a name for the relationship.
Define the cardinality of the relationship. For example, as one customer can have many purchases, the cardinality should be 1:many.
Define the Join keys used to define the join condition and relate the two tables.
Click Create to save the relationship.
Using the drag-and-drop method
The drag and drop method is an alternate way of creating relationships between models. In this method, you visually connect one model with another on the canvas — a configuration pane opens where you can define the relationship details.
Suppose you have another entity model, Accounts, and you want to create a relationship between the entity model Customers (created previously) and this model.
Click the + sign that appears on the right side of the Customers model.
Drag the relationship line to the left of the Accounts model and drop it on the canvas.
In the configuration pane, define the relationship details and the cardinality, for example, many:1, indicating that an account can have many customers.
Define the Join keys used to join the models, for example, Account Key.
Click Create to save the relationship.
Use the Auto Layout functionality (described in Step 4) to reorganize the graph.
You can continue expanding your data graph with more entity and event models, and building relevant relationships between them.
Organize the layout
Once the data graph is created, the models may appear scattered on the canvas. Use the Auto Layout option on the bottom left of the canvas to organize the graph.
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.