Output shows "ResultSet" instead of value in Scala Spark

128 views Asked by At

I'm writing a Spark streaming job and want to find out what's in my List, ArrayList, or what my return integers are.

This part of my code is supposed to print an integer result of a calculation:

println(math.floor(insights2.getTweetsFromCassandra(param1, pram2)).toInt)

However, when I run the streaming job, I get this output:

ResultSet[ exhausted: false, Columns[target(varchar)]]

How can I print out actual values instead, whether an integer or list?

0

There are 0 answers