Skip to content

QDB-16279 - Avoid side-effects for numpy write_arrays data argument#87

Merged
solatis merged 8 commits intomasterfrom
sc-16279/python-write-arrays-fails-on-the-retry-because-it-pops-timestamp-the-first-time
Apr 7, 2025
Merged

QDB-16279 - Avoid side-effects for numpy write_arrays data argument#87
solatis merged 8 commits intomasterfrom
sc-16279/python-write-arrays-fails-on-the-retry-because-it-pops-timestamp-the-first-time

Conversation

@solatis
Copy link
Contributor

@solatis solatis commented Apr 3, 2025

As reported, if the user invokes the function multiple times with the exact same arguments, the function may throw an error as it modifies the data dict in-place. This is not great.

This PR makes a shallow copy of the dict before pop'ing the item, which avoids this situation.

@solatis solatis requested review from Copilot and terngkub April 7, 2025 02:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • scripts/teamcity/20.test.sh: Language not supported

Copy link
Contributor

@terngkub terngkub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@solatis solatis merged commit 2639e0a into master Apr 7, 2025
2 checks passed
@solatis solatis deleted the sc-16279/python-write-arrays-fails-on-the-retry-because-it-pops-timestamp-the-first-time branch April 7, 2025 09:29
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