sarankk commented on code in PR #169:
URL:
https://github.com/apache/cassandra-analytics/pull/169#discussion_r2984320027
##########
cassandra-analytics-core/src/main/java/org/apache/cassandra/spark/bulkwriter/CassandraBulkWriterContext.java:
##########
@@ -56,9 +58,21 @@ protected CassandraBulkWriterContext(@NotNull
BulkWriterConfig config)
}
@Override
- protected ClusterInfo buildClusterInfo()
+ protected String getLowestCassandraVersion(@NotNull BulkSparkConf conf)
{
- return new CassandraClusterInfo(bulkSparkConf());
+ return CassandraClusterInfo.getLowestCassandraVersion(conf, null);
+ }
+
+ @Override
+ protected Set<String> getSSTableVersionsOnCluster(@NotNull BulkSparkConf
conf)
+ {
+ return CassandraClusterInfo.getSSTableVersionsOnCluster(conf, null);
+ }
+
+ @Override
+ protected ClusterInfo buildClusterInfo(CassandraVersion bridgeVersion)
+ {
+ return new CassandraClusterInfo(bulkSparkConf(), bridgeVersion);
Review Comment:
We seem to `buildCassandraContext` thrice among these 3 method, each
cassandra context initializes its own sidecar client. We should avoid this and
combine them.
--
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]