maedhroz commented on code in PR #3884:
URL: https://github.com/apache/cassandra/pull/3884#discussion_r1949995884
##########
src/java/org/apache/cassandra/index/sai/utils/IndexTermType.java:
##########
@@ -541,6 +549,9 @@ else if (isBigDecimal())
public ByteSource asComparableBytes(ByteBuffer value,
ByteComparable.Version version)
{
+ if (value.remaining() == 0)
+ return ByteSource.EMPTY;
Review Comment:
boolean and a couple other types will return `null` from their
implementations of `asComparableBytes()` if we don't do this
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]