csun5285 opened a new pull request, #3898:
URL: https://github.com/apache/doris-website/pull/3898
Document that STRUCT fields can be accessed via the subscript operator and
via
`ELEMENT_AT`, in addition to `STRUCT_ELEMENT`. These three are equivalent:
- `STRUCT_ELEMENT(s, k)` / `STRUCT_ELEMENT(s, 'field_name')`
- `ELEMENT_AT(s, k)` / `ELEMENT_AT(s, 'field_name')`
- `s[k]` / `s['field_name']`
## Versions
- [x] dev
- [ ] 4.x
- [ ] 3.x
- [ ] 2.1 or older (not covered by version/language sync gate)
## Languages
- [x] Chinese
- [x] 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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]