You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2021/10/22 14:58:55 UTC
[GitHub] [cassandra] subkanthi commented on a change in pull request #1282: [CASSANDRA-17023] Removed duplicate toCQLString in ReadCommand
subkanthi commented on a change in pull request #1282:
URL: https://github.com/apache/cassandra/pull/1282#discussion_r734619727
##########
File path: src/java/org/apache/cassandra/db/ReadCommand.java
##########
@@ -781,35 +781,6 @@ protected LongPredicate getPurgeEvaluator()
return Transformation.apply(iterator, new WithoutPurgeableTombstones());
}
- /**
- * Recreate the CQL string corresponding to this query.
- * <p>
- * Note that in general the returned string will not be exactly the original user string, first
- * because there isn't always a single syntax for a given query, but also because we don't have
- * all the information needed (we know the non-PK columns queried but not the PK ones as internally
- * we query them all). So this shouldn't be relied too strongly, but this should be good enough for
- * debugging purpose which is what this is for.
- */
- public String toCQLString()
- {
- StringBuilder sb = new StringBuilder().append("SELECT ")
- .append(columnFilter().toCQLString())
- .append(" FROM ")
- .append(ColumnIdentifier.maybeQuote(metadata().keyspace))
- .append('.')
- .append(ColumnIdentifier.maybeQuote(metadata().name));
Review comment:
Thanks, Removed.
--
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-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org