Skip to content

[doc](struct) match STRUCT sub-fields by name in cast from string#3907

Open
csun5285 wants to merge 1 commit into
apache:masterfrom
csun5285:doc-struct-cast-by-name
Open

[doc](struct) match STRUCT sub-fields by name in cast from string#3907
csun5285 wants to merge 1 commit into
apache:masterfrom
csun5285:doc-struct-cast-by-name

Conversation

@csun5285
Copy link
Copy Markdown
Contributor

@csun5285 csun5285 commented Jun 4, 2026

Document the behavior change from apache/doris#64011: when casting a string to STRUCT with field names fields are now matched by name (case-insensitive) instead of by position.
The input field order may differ from the schema, missing fields are filled with NULL, and unknown fields are rejected in strict mode / ignored in non-strict mode.

Versions

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

Languages

  • Chinese
  • English
  • Japanese candidate translation needed

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

Document the behavior change from apache/doris#64011: when casting a
string to STRUCT with field names (named mode), fields are now matched
by name (case-insensitive) instead of by position. The input field
order may differ from the schema, missing fields are filled with NULL,
and unknown fields are rejected in strict mode / ignored in non-strict
mode. Positional input (no field names) still requires an exact field
count. Updated EN/ZH for dev and 4.x.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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