From dd372af5a73ffc0e150efafa9ae946a91b78277c Mon Sep 17 00:00:00 2001 From: Max Ostapenko <1611259+max-ostapenko@users.noreply.github.com> Date: Sat, 30 Nov 2024 01:13:52 +0100 Subject: [PATCH] Fix func migration (#29) * fix json string * typo --- src/content/docs/reference/functions/get_lcp_lazy.mdx | 4 ++-- src/content/docs/reference/functions/get_lcp_priority.mdx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/docs/reference/functions/get_lcp_lazy.mdx b/src/content/docs/reference/functions/get_lcp_lazy.mdx index 384b9c7..7c076f0 100644 --- a/src/content/docs/reference/functions/get_lcp_lazy.mdx +++ b/src/content/docs/reference/functions/get_lcp_lazy.mdx @@ -43,7 +43,7 @@ For custom attributes, only the name needs to match (the value is ignored). For ```sql WITH lazy AS ( SELECT - `httparchive.fn.GET_LCP_LAZY`(SAFE.STRING(custom_metrics.performance)).native + `httparchive.fn.GET_LCP_LAZY`(TO_JSON_STRING(custom_metrics.performance)).native FROM `httparchive.crawl.pages` WHERE date = '2023-11-01' AND @@ -75,7 +75,7 @@ FROM ```sql WITH lazy AS ( SELECT - `httparchive.fn.GET_LCP_LAZY`(SAFE.STRING(custom_metrics.performance).custom + `httparchive.fn.GET_LCP_LAZY`(TO_JSON_STRING(custom_metrics.performance)).custom FROM `httparchive.crawl.pages` WHERE date = '2023-11-01' AND diff --git a/src/content/docs/reference/functions/get_lcp_priority.mdx b/src/content/docs/reference/functions/get_lcp_priority.mdx index ce2f2c6..2157722 100644 --- a/src/content/docs/reference/functions/get_lcp_priority.mdx +++ b/src/content/docs/reference/functions/get_lcp_priority.mdx @@ -31,7 +31,7 @@ The value of the `fetchpriority` attribute of the LCP element, or `null` if the ```sql WITH lcp AS ( SELECT - `httparchive.fn.GET_LCP_PRIORITY`(SAFE.STRING(custom_metrics.performance)) AS priority + `httparchive.fn.GET_LCP_PRIORITY`(TO_JSON_STRING(custom_metrics.performance)) AS priority FROM `httparchive.crawl.pages` WHERE date = '2023-11-01' AND