flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Ewen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLINK-1378) could not find implicit value for evidence parameter of type TypeInformation
Date Tue, 27 Jan 2015 21:01:34 GMT

     [ https://issues.apache.org/jira/browse/FLINK-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stephan Ewen resolved FLINK-1378.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 0.8
                   0.9

Fixed via 935e316a38367cab513dfe2b010129e5d47b7b68

> could not find implicit value for evidence parameter of type TypeInformation
> ----------------------------------------------------------------------------
>
>                 Key: FLINK-1378
>                 URL: https://issues.apache.org/jira/browse/FLINK-1378
>             Project: Flink
>          Issue Type: Bug
>          Components: Scala API
>    Affects Versions: 0.7.0-incubating
>            Reporter: John Sandiford
>            Assignee: Aljoscha Krettek
>             Fix For: 0.9, 0.8
>
>
> This is an example of one of many cases that I cannot get to compile with the scala API.
 I have tried using T : TypeInformation and : ClassTag but still cannot get it to work.
> //libraryDependencies += "org.apache.flink" % "flink-scala" % "0.7.0-incubating"
> //
> //libraryDependencies += "org.apache.flink" % "flink-clients" % "0.7.0-incubating"
> import org.apache.flink.api.scala._
> import scala.util.{Success, Try}
> object Main extends App {
>   val env = ExecutionEnvironment.getExecutionEnvironment
>   val data: DataSet[Double] = env.fromElements(1.0, 2.0, 3.0, 4.0)
>   def f[T](data: DataSet[T]): DataSet[(T, Try[Seq[Double]])] = {
>     data.mapPartition((iterator: Iterator[T]) => {
>       val first = iterator.next()
>       val second = iterator.next()
>       Iterator((first, Success(Seq(2.0, 3.0))), (second, Success(Seq(3.0, 1.0))))
>     })
>   }
>   val g = f(data)
>   g.print()
>   env.execute("Flink Test")
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message