Skip to content

Commit d1ba6b7

Browse files
committed
info note on junction table joins
1 parent 30dff1e commit d1ba6b7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/unify/data-graph/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,12 @@ For many:many relationships, define the join on between the two entity tables wi
354354

355355
**Junction table spec**
356356

357-
| Parameters | Definition |
358-
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
357+
> info ""
358+
> When used in junctions tables, `left join` is the column on the junction table to link with the parent (left) entity and `right join` is the column on the junction table to join with the child (right) entity. These values don’t actually manipulate the type of join - they are currently always `INNER JOINS`.
359+
360+
361+
| Parameters |Definition |
362+
| --------------- | --------------------------------- |
359363
| `table_ref` | Defines the fully qualified table reference to the join table: `[database name].[schema name].[table name]`. Segment flexibly supports tables, views and materialized views |
360364
| `primary_key` | The unique identifier for the given table. Must be a column with unique values per row |
361365
| `left_join_on` | Define the relationship between the left entity table and the junction table: `[left entity slug].[column name] = [junction table column name]`. Note that schema and table are implied within the junction table column name, so you do not need to define it again |

0 commit comments

Comments
 (0)