Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via DataStax JIRA by Piotr Kołaczkowski, 1 year ago
head of empty list
via DataStax JIRA by Piotr Kołaczkowski, 1 year ago
head of empty list
via Google Groups by yigal ulger, 1 year ago
via GitHub by gkleiman
, 2 years ago
java.util.NoSuchElementException: head of empty list	at scala.collection.immutable.Nil$.head(List.scala:337)	at scala.collection.immutable.Nil$.head(List.scala:334)	at org.apache.spark.sql.cassandra.CassandraStrategies$CassandraTableScans$$anonfun$partitionColumnPushDown$1.apply(CassandraStrategies.scala:76)	at org.apache.spark.sql.cassandra.CassandraStrategies$CassandraTableScans$$anonfun$partitionColumnPushDown$1.apply(CassandraStrategies.scala:75)	at scala.collection.immutable.List.foreach(List.scala:318)	at org.apache.spark.sql.cassandra.CassandraStrategies$CassandraTableScans$.partitionColumnPushDown(CassandraStrategies.scala:75)	at org.apache.spark.sql.cassandra.CassandraStrategies$CassandraTableScans$.apply(CassandraStrategies.scala:203)	at org.apache.spark.sql.catalyst.planning.QueryPlanner$$anonfun$1.apply(QueryPlanner.scala:58)	at org.apache.spark.sql.catalyst.planning.QueryPlanner$$anonfun$1.apply(QueryPlanner.scala:58)	at scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:371)	at org.apache.spark.sql.catalyst.planning.QueryPlanner.apply(QueryPlanner.scala:59)	at org.apache.spark.sql.SQLContext$QueryExecution.sparkPlan$lzycompute(SQLContext.scala:407)	at org.apache.spark.sql.SQLContext$QueryExecution.sparkPlan(SQLContext.scala:405)	at org.apache.spark.sql.SQLContext$QueryExecution.executedPlan$lzycompute(SQLContext.scala:411)	at org.apache.spark.sql.SQLContext$QueryExecution.executedPlan(SQLContext.scala:411)	at org.apache.spark.sql.SchemaRDD.collect(SchemaRDD.scala:438)	at org.apache.spark.sql.SchemaRDD.collect(SchemaRDD.scala:103)	at org.apache.spark.rdd.RDD.toArray(RDD.scala:794)	at com.esri.scala.TestCassandraSQL$.main(TestCassandraSQL.scala:18)	at com.esri.scala.TestCassandraSQL.main(TestCassandraSQL.scala)