Spark Sparsevector para listar

list(vector.toArray().tolist())
Index out of bounds