We have following sql in a markdown file. This reads from a postgresql source called production
SELECT
events.properties ->> 'organization_name' as organization_name,
COUNT(DISTINCT events.user_id) as user_count
FROM
production.events events
GROUP BY
organization_name
ORDER BY
organization_name;
We then get following error:
Catalog Error: Scalar Function with name "->>" is not in the catalog, but it exists in the json extension. Please try installing and loading the json extension by running: INSTALL json; LOAD json; Alternatively, consider enabling auto-install and auto-load by running: SET autoinstall_known_extensions=1; SET autoload_known_extensions=1;
Describe the bug
We have following sql in a markdown file. This reads from a postgresql source called
production
We then get following error:
Catalog Error: Scalar Function with name "->>" is not in the catalog, but it exists in the json extension. Please try installing and loading the json extension by running: INSTALL json; LOAD json; Alternatively, consider enabling auto-install and auto-load by running: SET autoinstall_known_extensions=1; SET autoload_known_extensions=1;
Steps to Reproduce
Logs
No response
System Info
No response
Severity
annoyance
Additional Information, or Workarounds
No response