adelapena commented on code in PR #2482:
URL: https://github.com/apache/cassandra/pull/2482#discussion_r1261231718
##########
test/distributed/org/apache/cassandra/distributed/test/ByteBuddyExamplesTest.java:
##########
@@ -115,8 +117,12 @@ static void install(ClassLoader cl, int nodeNumber)
public static ResultMessage.Rows execute(QueryState state,
QueryOptions options, long queryStartNanoTime, @SuperCall
Callable<ResultMessage.Rows> r) throws Exception
{
- count.incrementAndGet();
- return r.call();
+ Rows res = r.call();
+
+ if (res.result.metadata.names.stream().map(c ->
c.toString()).collect(Collectors.toList()).contains("bytebuddy_test_column"))
Review Comment:
Super nit: can use a method reference
```suggestion
if
(res.result.metadata.names.stream().map(ColumnSpecification::toString).collect(Collectors.toList()).contains("bytebuddy_test_column"))
```
--
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]