[jira] [Created] (FLINK-1191) TypeAnalyzer MatchError when analyzing BitSet type with Scala API

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-1191) TypeAnalyzer MatchError when analyzing BitSet type with Scala API

Shang Yuanchun (Jira)
Till Rohrmann created FLINK-1191:
------------------------------------

             Summary: TypeAnalyzer MatchError when analyzing BitSet type with Scala API
                 Key: FLINK-1191
                 URL: https://issues.apache.org/jira/browse/FLINK-1191
             Project: Flink
          Issue Type: Bug
            Reporter: Till Rohrmann


The type analyzer of the ScalaAPI treats BitSet as a ListType. When the unapply method of the ListType is called with a BitSet type then it will be considered a TraversableType. However, within the TraversableType unapply method there is an non-exhaustive pattern matching which fails with BitSet. There is also a comment which says "TODO: make sure this works as it should". As a result, the user only sees that some implicit evidence parameters of type TypeInformation are missing, because they weren't generated. From the user perspective, it would be nice to receive a more meaningful error message.



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