Skip to content

Commit

Permalink
Update timeseries.md: Add missing time_range argument to date_bin_tab…
Browse files Browse the repository at this point in the history
…le example
  • Loading branch information
brianpursley authored May 23, 2024
1 parent 6eeb726 commit c5b4770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/timeseries.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ This function automates the tedium of aligning time-series values to a given wid
It must be called against a time-series table, but apart from that consideration using it is pretty straightforward:

```sql
SELECT * FROM date_bin_table(NULL::target_table, '1 hour');
SELECT * FROM date_bin_table(NULL::target_table, '1 hour', '[2024-02-01 00:00, 2024-02-02 15:00]');
```

The output of this query will differ from simply hitting the target table directly in three ways:
Expand Down

0 comments on commit c5b4770

Please sign in to comment.