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

Handle null partition keys in a bound statement #40

Draft
wants to merge 1 commit into
base: 4.15.x
Choose a base branch
from

Conversation

ashetkar
Copy link

@ashetkar ashetkar commented Feb 26, 2024

The PartitionAwarePolicy does not expect null values for the partition key in bound statements.
But null values could be set for partition keys by mistake and that should not cause NPEs coming from the driver.
Nulls are handled simply by falling back to the YugabyteDefaultLoadBalancingPolicy.

Testing
Test case needs to be added, though tested through an app.

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