citusdata / citusdata/citus_docs

create_time_partitions example missing interval keyword

Open
#1,137 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
58
Forks
60
PR merge metrics
No merged PRs in 30d

Description

I noticed that in the latest Citus documentation for the create_time_partitions() function under Citus Utility Functions that when I followed the example, my code wasn't creating time partitions properly. I realized that I was missing the SQL `INTERVAL` keyword, and when I checked the example in the documentation, it was also missing the keyword.

The example should read as follows:

```
SELECT create_time_partitions(
table_name := 'foo',
partition_interval := '1 month',
end_at := now() + INTERVAL '12 months'
);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.