Skip to content

Instantly share code, notes, and snippets.

@jvanz
Created May 22, 2015 18:15
Show Gist options
  • Save jvanz/4545d6c4e75f96d5cfab to your computer and use it in GitHub Desktop.
Save jvanz/4545d6c4e75f96d5cfab to your computer and use it in GitHub Desktop.
Stacktrace
[info] java.lang.ClassCastException: java.lang.String cannot be cast to com.datastax.spark.connector.SelectableColumnRef
[info] at com.datastax.spark.connector.SomeColumns$$anonfun$aliases$3.apply(ColumnSelector.scala:18)
[info] at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
[info] at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
[info] at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
[info] at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:34)
[info] at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
[info] at scala.collection.AbstractTraversable.map(Traversable.scala:105)
[info] at com.datastax.spark.connector.SomeColumns.aliases(ColumnSelector.scala:18)
[info] at com.datastax.spark.connector.rdd.CassandraTableRowReaderProvider$class.com$datastax$spark$connector$rdd$CassandraTableRowReaderProvider$$aliasToColumnName(CassandraTableRowReaderProvider.scala:48)
[info] at com.datastax.spark.connector.rdd.CassandraTableScanRDD.com$datastax$spark$connector$rdd$CassandraTableRowReaderProvider$$aliasToColumnName$lzycompute(CassandraTableScanRDD.scala:58)
[info] at com.datastax.spark.connector.rdd.CassandraTableScanRDD.com$datastax$spark$connector$rdd$CassandraTableRowReaderProvider$$aliasToColumnName(CassandraTableScanRDD.scala:58)
[info] at com.datastax.spark.connector.rdd.CassandraTableRowReaderProvider$class.rowReader(CassandraTableRowReaderProvider.scala:46)
[info] at com.datastax.spark.connector.rdd.CassandraTableScanRDD.rowReader$lzycompute(CassandraTableScanRDD.scala:58)
[info] at com.datastax.spark.connector.rdd.CassandraTableScanRDD.rowReader(CassandraTableScanRDD.scala:58)
[info] at com.datastax.spark.connector.rdd.CassandraTableRowReaderProvider$class.verify(CassandraTableRowReaderProvider.scala:163)
[info] at com.datastax.spark.connector.rdd.CassandraTableScanRDD.verify(CassandraTableScanRDD.scala:58)
[info] at com.datastax.spark.connector.rdd.CassandraTableScanRDD.getPartitions(CassandraTableScanRDD.scala:117)
[info] at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:222)
[info] at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:220)
[info] at scala.Option.getOrElse(Option.scala:120)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment