Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-1306

Scala API does not support standard sets

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 0.7.0-incubating
    • Fix Version/s: 0.8.0
    • Component/s: Scala API
    • Labels:
      None

      Description

      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?

      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)
      

        Attachments

          Activity

            People

            • Assignee:
              aljoscha Aljoscha Krettek
              Reporter:
              ssc Sebastian Schelter
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: