Skip to content

Commit

Permalink
Fix func migration (#29)
Browse files Browse the repository at this point in the history
* fix json string

* typo
  • Loading branch information
max-ostapenko authored Nov 30, 2024
1 parent 66cafad commit dd372af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/content/docs/reference/functions/get_lcp_lazy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/reference/functions/get_lcp_priority.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd372af

Please sign in to comment.