Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sl-jdbc.md #6042

Merged
merged 4 commits into from
Sep 12, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions website/docs/docs/dbt-cloud-apis/sl-jdbc.md
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,19 @@ select * from {{ semantic_layer.query(saved_query="new_customer_orders", limit=5

The JDBC API will use the saved query (`new_customer_orders`) as defined and apply a limit of 5 records.

### Multi-hop joins

In cases where you need to query across multiple related tables (multi-hop joins), use the `entity_path` argument to specify the path between related entities. The following are examples of how you can define these joins:

- In this example, you're querying the `location_name` dimension but specifying that it should be joined using the `order_id` field.
```sql
{{Dimension('location__location_name', entity_path=['order_id'])}}
```
- In this example, the `salesforce_account_owner` dimension is joined to the `region` field, with the path going through `salesforce_account`.
```sql
{{ Dimension('salesforce_account_owner__region',['salesforce_account']) }}
```

## FAQs

<FAQ path="Troubleshooting/sl-alpn-error" />
Expand Down
Loading