Skip to content

structaccess: report nil parent in Set errors - #6926

Open
denik wants to merge 1 commit into
mainfrom
denik/nil-parent-message
Open

denik wants to merge 1 commit into
mainfrom
denik/nil-parent-message

Conversation

@denik

@denik denik commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Setting through a nil map/pointer/slice parent (omitted via omitempty) used to fail with cannot set key "k" on invalid. It now says cannot set m.k: parent m is nil. Missing parents are still not allocated. Also returns an error instead of panicking on a nil non-omitempty map.

No goldens contained the old message.

This pull request and its description were written by Isaac.

Set returned 'cannot set key "k" on invalid' for nil map/pointer parents
omitted via omitempty. Report the parent path as nil instead. Also avoids a
panic when writing into a nil map.

Co-authored-by: Isaac <no-reply@databricks.com>
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 3935962

Run: 37309277613

Env ✅​pass 🙈​skip Time
✅​ aws linux 276 16 5:45
✅​ aws windows 278 14 3:30
✅​ azure linux 275 16 6:23
✅​ azure windows 277 14 3:59
✅​ gcp linux 276 16 5:56
✅​ gcp windows 278 14 3:46
Top 6 slowest tests (at least 2 minutes):
duration env testname
4:08 aws linux TestAccept
4:04 azure linux TestAccept
3:57 gcp linux TestAccept
3:55 azure windows TestAccept
3:44 gcp windows TestAccept
3:27 aws windows TestAccept

@denik
denik marked this pull request as ready for review October 5, 2026 13:18
@denik
denik requested a review from a team as a code owner October 5, 2026 13:18
@denik
denik requested a review from renaudhartert-db October 5, 2026 13:18

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.

2 participants