Skip to content

Commit

Permalink
Fix query typo in 05_state.md
Browse files Browse the repository at this point in the history
Join used same table name, now uses both table names.
  • Loading branch information
ksilin authored Dec 18, 2024
1 parent 5a0e250 commit 4308cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 05_state.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ growing very quickly and the state per customer is small.

```sql
SELECT * FROM `examples`.`marketplace`.`orders` AS o
INNER JOIN `examples`.`marketplace`.`customers` AS c ON o.customer_id = o.customer_id
INNER JOIN `examples`.`marketplace`.`customers` AS c ON o.customer_id = c.customer_id
```
This join needs to materialize both tables `orders` and `customers` fully in state. This is because if a row in the
left-hand table (LHT) is updated, the operator needs to emit an updated match for with all matching rows in the
Expand Down

0 comments on commit 4308cd7

Please sign in to comment.