Skip to content

Conversation

@frankgh
Copy link
Contributor

@frankgh frankgh commented Jun 28, 2022

Calling AbstractCell#toString on a tombstoned multi-cell CollectionType for the date, duration,
smallint, time, and tinyint types produces a MarshalException. The root cause of the issue
occurs when AbstractCell#toString in turns calls AbstractType#getString(V value, ValueAccessor<V> acccesor).
The TypeSerializer performs validation of the value. However, because this value is tombstoned
the size of the value is 0 which doesn't match the type value. The failed check throws a MarshalException.
In this commit, we check whether the Cell is tombstoned and add the "" string to the
output of the AbstractCell#toString method for tombstoned cells.

frankgh added 4 commits June 28, 2022 11:40
…ollectionTypes

Calling AbstractCell#toString on a tombstoned multicell CollectionType for the date, duration,
smallint, time, and tinyint types produces a MarshalException. The root cause of the issue
occurs when AbstractCell#toString in turns calls AbstractType#getString(V value, ValueAccessor<V> acccesor).
The TypeSerializer performs validation of the value. However, because this value is tombstoned
the size of the value is 0 which doesn't match the type value. The failed check throws a MarshalException.
In this commit, we check whether the Cell is tombstoned and add the "<tombstone>" string to the
output of the AbstractCell#toString method.
@frankgh
Copy link
Contributor Author

frankgh commented Jun 30, 2022

Merged via a9725b6

@frankgh frankgh closed this Jun 30, 2022
@frankgh frankgh deleted the CASSANDRA-17695-4.1 branch June 30, 2022 12:36
ekaterinadimitrova2 pushed a commit that referenced this pull request Jun 9, 2025
…1705)

### What is the issue
Fixes: riptano/cndb#13625

### What does this PR fix and why was it fixed
When `rerank_k` is non-positive, we will skip reranking where possible.

A minor note: this change is not strictly backwards compatible because
of the original implementation. However, it will fail quickly if the
coordinator accepts the value but the writer does not, and since this is
only a query-time parameter, I propose that we move forward and accept
the net-new value that was previously disallowed.
michaeljmarshall added a commit to michaeljmarshall/cassandra that referenced this pull request Sep 17, 2025
michaelsembwever pushed a commit to thelastpickle/cassandra that referenced this pull request Jan 7, 2026
…pache#1705)

### What is the issue
Fixes: riptano/cndb#13625

### What does this PR fix and why was it fixed
When `rerank_k` is non-positive, we will skip reranking where possible.

A minor note: this change is not strictly backwards compatible because
of the original implementation. However, it will fail quickly if the
coordinator accepts the value but the writer does not, and since this is
only a query-time parameter, I propose that we move forward and accept
the net-new value that was previously disallowed.
michaelsembwever pushed a commit to thelastpickle/cassandra that referenced this pull request Jan 7, 2026
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