joinWithCassandraTable does not support PrimaryKeyColumns

Description

Passing joinColumns=PrimaryKeyColumns to joinWithCassandraTable results in error:

Stacktrace

scala.MatchError: PrimaryKeyColumns (of class com.datastax.spark.connector.PrimaryKeyColumns$)
at com.datastax.spark.connector.rdd.AbstractCassandraJoin$class.joinColumnNames(AbstractCassandraJoin.scala:45)
at com.datastax.spark.connector.rdd.CassandraJoinRDD.joinColumnNames$lzycompute(CassandraJoinRDD.scala:22)
at com.datastax.spark.connector.rdd.CassandraJoinRDD.joinColumnNames(CassandraJoinRDD.scala:22)
at com.datastax.spark.connector.rdd.AbstractCassandraJoin$class.checkValidJoin(AbstractCassandraJoin.scala:68)
at com.datastax.spark.connector.rdd.CassandraJoinRDD.checkValidJoin(CassandraJoinRDD.scala:22)
at com.datastax.spark.connector.rdd.AbstractCassandraJoin$class.getPartitions(AbstractCassandraJoin.scala:184)
at com.datastax.spark.connector.rdd.CassandraJoinRDD.getPartitions(CassandraJoinRDD.scala:22)
at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:253)
at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:251)
at scala.Option.getOrElse(Option.scala:121)
at org.apache.spark.rdd.RDD.partitions(RDD.scala:251)

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Marcin Kamionowski

Labels

None

Reviewer

None

Reviewer 2

None

Tester

None

Pull Request

None

Affects versions

Priority

Major
Configure