Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Merge data to init document #293

Merged
merged 1 commit into from
Aug 7, 2024
Merged

Conversation

anakrish
Copy link
Collaborator

@anakrish anakrish commented Aug 7, 2024

Init document is the aggregated data documen that the user has specified using multiple add_data calls. Each query evaluation starts of by initializing the current data to the init document.

Previously add_data was incorrectly added to the current document, causing the added data to be lost if the addition happened after query evaluation.

With this fix, scenarios where data addition may be interspersed with query evaluation calls are supported.

Also provide a get_data method to obtain the (init) data document.

Init document is the aggregated data documen that the user has
specified using multiple `add_data` calls. Each query evaluation
starts of by initializing the current data to the init document.

Previously `add_data` was incorrectly added to the current document,
causing the added data to be lost if the addition happened after query
evaluation.

With this fix, scenarios where data addition may be interspersed with
query evaluation calls are supported.

Also provide a get_data method to obtain the (init) data document.

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
@anakrish anakrish merged commit ef549a6 into microsoft:main Aug 7, 2024
16 checks passed
@anakrish anakrish deleted the bugs-data branch August 7, 2024 18:39
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