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: pr-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For additional commands, e-mail: pr-h...@cassandra.apache.org