Posts by Marisa Cruz • 23 points
2 posts
-
2
votes2
answers68
viewsA: How to remove square parentheses from a scala array
To resolve I made the following change to the code val result = data.map(row => { val day = dia.format(input.parse(row.toString().replace("[", "").replace("]", "").replace("(", "").replace(")",…
-
0
votes2
answers68
viewsQ: How to remove square parentheses from a scala array
I have an array of dates [2014-11-08 06:27:00.0], and would like to remove the square brackets 2014-11-08 06:27:00.0. val conf = new SparkConf(true) .set("spark.cassandra.connection.host",…