From 49fc1725a18bc48b5de91ed1c45fa58803e00fdc Mon Sep 17 00:00:00 2001 From: Julio Avila Date: Wed, 8 Jan 2025 12:02:20 -0600 Subject: [PATCH 1/2] docs: clarify usage of cron + sql in refresh_key --- docs/pages/reference/data-model/pre-aggregations.mdx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/pages/reference/data-model/pre-aggregations.mdx b/docs/pages/reference/data-model/pre-aggregations.mdx index 941d7a2b5d6f6..271150798c8a9 100644 --- a/docs/pages/reference/data-model/pre-aggregations.mdx +++ b/docs/pages/reference/data-model/pre-aggregations.mdx @@ -924,6 +924,12 @@ cubes: To have a pre-aggregation rebuild at a specific time of day, you can use a CRON string with some limitations. For more details about values that can be used with the `every` parameter, please refer to the [`refreshKey`][ref-cube-refreshkey] documentation. + + +Using CRON strings and `sql` is not supported and will result in a compilation error. + + + You can also use `every` with `sql`: @@ -1756,4 +1762,4 @@ cubes: [ref-aggregating-indexes]: /product/caching/using-pre-aggregations#aggregating-indexes [ref-pre-aggs]: /product/caching/using-pre-aggregations [ref-ref-cubes]: /reference/data-model/cube -[ref-custom-granularity]: /reference/data-model/dimensions#granularities \ No newline at end of file +[ref-custom-granularity]: /reference/data-model/dimensions#granularities From 946645ecb60f330923f00147b1ff7f482548b6b5 Mon Sep 17 00:00:00 2001 From: Julio Avila Date: Wed, 8 Jan 2025 12:06:45 -0600 Subject: [PATCH 2/2] Update pre-aggregations.mdx --- docs/pages/reference/data-model/pre-aggregations.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/reference/data-model/pre-aggregations.mdx b/docs/pages/reference/data-model/pre-aggregations.mdx index 271150798c8a9..abea423da852e 100644 --- a/docs/pages/reference/data-model/pre-aggregations.mdx +++ b/docs/pages/reference/data-model/pre-aggregations.mdx @@ -924,14 +924,14 @@ cubes: To have a pre-aggregation rebuild at a specific time of day, you can use a CRON string with some limitations. For more details about values that can be used with the `every` parameter, please refer to the [`refreshKey`][ref-cube-refreshkey] documentation. +You can also use `every` with `sql`: + Using CRON strings and `sql` is not supported and will result in a compilation error. -You can also use `every` with `sql`: - ```javascript