[error] found : Unit
[error] required: Boolean
[error] val value = values.split( " " ).filter(x => ( for(y <- x) { if(y!=""){ y}}) )
My input RDD is like
1 : 11111,22222
2 : 22224 4747
val lines1 = input2.map( line => line.split(":") )
val l1 = lines1.flatMap( arr => {
val key = arr( 0 )
val values = arr( 1 )
val value = values.split( " " ).filter(x => ( for(y <- x) { if(y!=""){ y}}) )
Any suggestions?
y!=""isy.nonEmpty.