Skip to content

Commit

Permalink
Merge pull request #18 from tolbertam/bug/17
Browse files Browse the repository at this point in the history
[#17] Relax component == key count assertion if using shortKeys.
  • Loading branch information
tolbertam committed Dec 18, 2015
2 parents ec3d073 + f45e930 commit 86b4432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/csforge/sstable/JsonTransformer.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private void serializePartitionKey(DecoratedKey key) {
if (keyValidator instanceof CompositeType) {
// if a composite type, the partition has multiple keys.
CompositeType compositeType = (CompositeType) keyValidator;
assert compositeType.getComponents().size() == metadata.partitionKeyColumns().size();
assert shortKeys || compositeType.getComponents().size() == metadata.partitionKeyColumns().size();
ByteBuffer keyBytes = key.getKey().duplicate();
// Skip static data if it exists.
if (keyBytes.remaining() >= 2) {
Expand Down

0 comments on commit 86b4432

Please # to comment.