flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian Schelter (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-1306) Scala API does not support standard sets
Date Fri, 05 Dec 2014 17:04:12 GMT
Sebastian Schelter created FLINK-1306:
-----------------------------------------

             Summary: Scala API does not support standard sets
                 Key: FLINK-1306
                 URL: https://issues.apache.org/jira/browse/FLINK-1306
             Project: Flink
          Issue Type: Bug
          Components: Scala API
    Affects Versions: 0.7.0-incubating
            Reporter: Sebastian Schelter


I'm trying to use the standard scala sets in Flinks Scala API, unfortunately they don't seem
to be supported...

What can I do to be able to use sets in my UDFs?

{noformat}
Exception in thread "main" org.apache.flink.api.common.functions.InvalidTypesException: Interfaces
and abstract classes are not valid types: interface scala.collection.immutable.Set
	at org.apache.flink.api.java.typeutils.TypeExtractor.privateGetForClass(TypeExtractor.java:871)
	at org.apache.flink.api.java.typeutils.TypeExtractor.privateGetForClass(TypeExtractor.java:863)
	at org.apache.flink.api.java.typeutils.TypeExtractor.createTypeInfoWithTypeHierarchy(TypeExtractor.java:406)
	at org.apache.flink.api.java.typeutils.TypeExtractor.privateCreateTypeInfo(TypeExtractor.java:197)
	at org.apache.flink.api.java.typeutils.TypeExtractor.createTypeInfo(TypeExtractor.java:184)
	at io.ssc.trackthetrackers.analysis.preparation.ExtractTrackingGraph$$anon$3.<init>(ExtractTrackingGraph.scala:67)
	at io.ssc.trackthetrackers.analysis.preparation.ExtractTrackingGraph$.fromParsedPages(ExtractTrackingGraph.scala:67)
	at io.ssc.trackthetrackers.analysis.preparation.ExtractTrackingGraph$delayedInit$body.apply(ExtractTrackingGraph.scala:28)
	at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
	at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
	at scala.App$$anonfun$main$1.apply(App.scala:71)
	at scala.App$$anonfun$main$1.apply(App.scala:71)
	at scala.collection.immutable.List.foreach(List.scala:318)
	at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
	at scala.App$class.main(App.scala:71)
	at io.ssc.trackthetrackers.analysis.preparation.ExtractTrackingGraph$.main(ExtractTrackingGraph.scala:26)
	at io.ssc.trackthetrackers.analysis.preparation.ExtractTrackingGraph.main(ExtractTrackingGraph.scala)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
{noformat}



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

Mime
View raw message