flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Anderson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-8438) Ensure that implicit Scala TypeInformation works in Eclipse IDE
Date Tue, 16 Jan 2018 14:52:00 GMT

    [ https://issues.apache.org/jira/browse/FLINK-8438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16327197#comment-16327197

David Anderson commented on FLINK-8438:

This code (adapted from the Flink scala quickstart)
import org.apache.flink.api.scala._
import org.apache.flink.streaming.api.scala._
import org.apache.flink.api.common.typeinfo.BasicTypeInfo
import org.apache.flink.api.java.typeutils.TupleTypeInfo
import org.apache.flink.api.common.typeinfo.Types
val text = env.socketTextStream(hostName, port)
val foo = (x: String) => (x, 1)
val tuples = text.map(foo)
produces these errors when compiled by eclipse:

could not find implicit value for evidence parameter of type org.apache.flink.api.common.typeinfo.TypeInformation[(String,
not enough arguments for method map: (implicit evidence$7: org.apache.flink.api.common.typeinfo.TypeInformation[(String,
Int)])org.apache.flink.streaming.api.scala.DataStream[(String, Int)]. Unspecified value parameter

This code can be made to compile by using TypeInformation.of(), but the resulting tuples are
then GenericTypeInfo and don't really work. TypeInformation.of() doesn't work properly with
Scala classes.

> Ensure that implicit Scala TypeInformation works in Eclipse IDE
> ---------------------------------------------------------------
>                 Key: FLINK-8438
>                 URL: https://issues.apache.org/jira/browse/FLINK-8438
>             Project: Flink
>          Issue Type: Bug
>          Components: Type Serialization System
>            Reporter: Timo Walther
>            Assignee: Timo Walther
>            Priority: Major
> It seems that Scala macros do not work properly in the Eclipse IDE. We need to investigate
this further and maybe need to update the Scala macros.

This message was sent by Atlassian JIRA

View raw message