Skip to content

Vector types: optimize error path #1226

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

Merged
merged 2 commits into from
Jul 29, 2025

Conversation

robsdedude
Copy link
Member

The pure-python implementations of Vector.from_native perform type checks. This patch makes the driver fail fast when passing incompatible types instead of scanning the whole Iterable parameter.

The pure-python implementations of `Vector.from_native` perform type checks.
This patch makes the driver fail fast when passing incompatible types instead
of scanning the whole Iterable parameter.
@robsdedude robsdedude force-pushed the feat/vector-from-native-optimization branch 2 times, most recently from 60a20e6 to 8cdc58d Compare July 24, 2025 18:07
@robsdedude robsdedude force-pushed the feat/vector-from-native-optimization branch from 8cdc58d to 9c6ca1f Compare July 24, 2025 18:47
@robsdedude robsdedude marked this pull request as ready for review July 24, 2025 20:14
Copy link
Contributor

@StephenCathcart StephenCathcart left a comment

Choose a reason for hiding this comment

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

👍

@robsdedude robsdedude merged commit ee9caf3 into neo4j:6.x Jul 29, 2025
20 checks passed
@robsdedude robsdedude deleted the feat/vector-from-native-optimization branch July 29, 2025 12:16
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