maedhroz commented on code in PR #2989:
URL: https://github.com/apache/cassandra/pull/2989#discussion_r1430523027
##########
test/unit/org/apache/cassandra/index/sai/disk/v1/InvertedIndexSearcherTest.java:
##########
@@ -220,6 +220,8 @@ private List<Pair<ByteComparable, LongArrayList>>
buildTermsEnum(int terms, int
private ByteBuffer wrap(ByteComparable bc)
{
- return
ByteBuffer.wrap(ByteSourceInverse.readBytes(bc.asComparableBytes(ByteComparable.Version.OSS50)));
+// return
ByteBuffer.wrap(ByteSourceInverse.readBytes(bc.asComparableBytes(ByteComparable.Version.OSS50)));
+
+ return
ByteBuffer.wrap(ByteSourceInverse.readBytes(ByteSourceInverse.unescape(ByteSource.peekable(bc.asComparableBytes(ByteComparable.Version.OSS50)))));
Review Comment:
nit: clean up commented out bit
We're having to do this now because we've changed `buildStringTermsEnum()`
to use `ByteComparable.of()`, which implicitly escapes? I'm trying to remember
why we escape at all if we don't index multiple `ByteSource`s...
--
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]