Skip to content

Commit 902f57a

Browse files
committed
SPARKC-641 Use the more concise scala syntax CassandraConnectorConf(SparkConf) instead of CassandraConnectorConf.fromSparkConf(SparkConf) when instantiating CassandraConnector
1 parent 1b2e262 commit 902f57a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connector/src/main/scala/com/datastax/spark/connector/cql/CassandraConnector.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ object CassandraConnector extends Logging {
220220

221221
/** Returns a CassandraConnector created from properties found in the [[org.apache.spark.SparkConf SparkConf]] object */
222222
def apply(conf: SparkConf): CassandraConnector = {
223-
CassandraConnector(CassandraConnectorConf.fromSparkConf(conf))
223+
CassandraConnector(CassandraConnectorConf(conf))
224224
}
225225

226226
/** Returns a CassandraConnector with runtime Cluster Environment information. This can set remoteConnectionsPerExecutor

0 commit comments

Comments
 (0)