Re: "Cannot resolve map"

2016-11-04 Thread Till Rohrmann
Hi Thomas, Flink does not support partial functions due to the map method being overloaded. Instead you can write map{ x match { case ... => } } or you import org.apache.flink.scala.extensions.acceptPartialFunctions and then write .zipWithIndex.mapWith { case ... => }. Cheers, Till ​ On Fri,

"Cannot resolve map"

2016-11-04 Thread Thomas FOURNIER
Hello, In the following code, map { case (id,(label, count)) => (label,id) } is not resolved. Is it related to zipWithIndex (org.apache.flink.api.scala) operation ? My input is a DataSet[String] and I'd like to output a DataSet[(String,Long)] val mapping = input .map( (s => (s, 1)) )