Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 18, 2025

What's Changed in this PR

Documents the new json_get_object(json, path) UDF added in GreptimeTeam/greptimedb#7241.

Function behavior:

  • Extracts object values from JSON by path
  • Returns NULL if path doesn't point to an object
  • Can be chained with other JSON functions for nested access

Example:

SELECT json_to_string(json_get_object(parse_json('{"a": {"b": {"c": {"d": 42}}}}'), 'a.b.c'));
-- Returns: {"d":42}

Updated files:

  • docs/reference/sql/functions/json.md - Added function to Extraction section with example
  • i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/functions/json.md - Chinese translation

Checklist

  • Please confirm that all corresponding versions of the documents have been revised.
  • Please ensure that the content in sidebars.ts matches the current document structure when you changed the document structure.
  • This change requires follow-up update in localized docs.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • googlechromelabs.github.io
    • Triggering command: node install.mjs (dns block)
  • https://storage.googleapis.com/chrome-for-testing-public/137.0.7151.119/linux64/chrome-headless-shell-linux64.zip
    • Triggering command: node install.mjs (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Update docs for feat: udf json_get_object</issue_title>
<issue_description>A document change request is generated from GreptimeTeam/greptimedb#7241</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 18, 2025

Deploying greptime-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3ef226a
Status: ✅  Deploy successful!
Preview URL: https://a416b85d.greptime-docs.pages.dev
Branch Preview URL: https://copilot-update-docs-for-json.greptime-docs.pages.dev

View logs

Copilot AI changed the title [WIP] Update documentation for UDF json_get_object docs: add json_get_object UDF function Nov 18, 2025
Copilot finished work on behalf of MichaelScofield November 18, 2025 09:27
@MichaelScofield MichaelScofield marked this pull request as ready for review November 21, 2025 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update docs for feat: udf json_get_object

2 participants