Skip to content

Commit

Permalink
Merge pull request #2 from ksilin/patch-3
Browse files Browse the repository at this point in the history
Fix temporal join typo in 06_statettl.md
  • Loading branch information
knaufk authored Dec 19, 2024
2 parents c4c829c + c3c0ec7 commit 860b916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 06_statettl.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ instead of a regular join.

```sql
SELECT * FROM `examples`.`marketplace`.`orders` AS o
INNER JOIN `examples`.`marketplace`.`customers` FOR SYSTEM AS OF `$rowtime` AS c ON o.customer_id = c.customer_id
INNER JOIN `examples`.`marketplace`.`customers` FOR SYSTEM_TIME AS OF o.`$rowtime` AS c ON o.customer_id = c.customer_id
```
This changes the logic of the query. With a temporal table join, every order is enriched with the corresponding customer
information as of the time when the order happened (`$rowtime`). There is one output row for each `order`. When a row
Expand Down

0 comments on commit 860b916

Please sign in to comment.