Skip to content

[docs](variant) Clarify empty values and JSON parsing - #4740

Open
eldenmoon wants to merge 2 commits into
apache:masterfrom
eldenmoon:docs/variant-empty-values
Open

eldenmoon wants to merge 2 commits into
apache:masterfrom
eldenmoon:docs/variant-empty-values

Conversation

@eldenmoon

@eldenmoon eldenmoon commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Show how to distinguish an empty JSON object, a string containing {}, an empty string, and SQL NULL after writing to a VARIANT column.
  • Document how root JSON null reads back from storage and how PARSE_TO_VARIANT and TRY_PARSE_TO_VARIANT handle invalid or empty input.
  • Update the English and Chinese Dev pages for the behavior verified on Doris master.

Versions

  • dev
  • 4.x
  • 3.x
  • 2.1 or older (not covered by version/language sync gate)

Languages

  • Chinese
  • English

Docs Checklist

  • Checked by AI
  • Test Cases Built
  • Updated required version and language counterparts, or explained why not
  • If only one language changed, confirmed whether source/translation counterparts need sync

The behavior described here was verified on Doris master at b73ed53f62a, so this PR updates the Dev pages. The SQL matrix covered standalone and mixed writes, default storage, and DOC mode. Internal link checks passed on all six pages. Scoped documentation governance reported no new findings compared with the base.

This branch has not been deployed

No deployments
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.

1 participant