-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for nil partition key for secondary indexes in memory
connector Why: Cassandra supports secondary indexes where the partition key can be nil. This results in the index not being generated until the value is set. The test client which uses a memory connector should support the same behavior. - This change addresses the need by: Add a `nil` check in `partitionKeyBuilder` which is capable of handling different value types. In these cases, we simply skip over the value instead of encoding a `nil` value which results in a panic inside the gob encoder. -
- Loading branch information
1 parent
9b7dd30
commit 93e4312
Showing
3 changed files
with
62 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters