Skip to content

fix: escape dotted and dollar-prefixed keys in task upserts - #353

Open
JaimeCernuda wants to merge 7 commits into
ORNL:devfrom
JaimeCernuda:fix/dotted-keys-in-task-upserts
Open

JaimeCernuda wants to merge 7 commits into
ORNL:devfrom
JaimeCernuda:fix/dotted-keys-in-task-upserts

Conversation

@JaimeCernuda

Copy link
Copy Markdown

Fixes #352.

insert_and_update_many_tasks writes tasks through an aggregation-pipeline $set, which rejects . or a leading $ in any nested key (server error 16412) and fails the whole bulk_write batch. This escapes such keys with fullwidth lookalikes (/) before building the update ops, and adds a test that inserts a task with a yr.doy payload key.

Happy to switch the escaping convention if you prefer a different one.

renan-souza and others added 7 commits July 10, 2026 12:07
insert_and_update_many_tasks writes tasks through an aggregation-pipeline
$set, which rejects '.' or a leading '$' in any nested key (server error
16412) and fails the whole bulk_write batch. Payload keys are now escaped
with fullwidth lookalikes before building the update ops.
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.

3 participants