You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/11/04 15:11:33 UTC

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

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

ASF GitHub Bot commented on FLINK-1191:
---------------------------------------

GitHub user aljoscha opened a pull request:

    https://github.com/apache/incubator-flink/pull/177

    [FLINK-1191] Add support for Scala Collections and Special Types

    "The special types" are Option and Either. This should work for all
    Scala collections except SortedSet and SortedMap, for which the type
    checker prints an error message.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aljoscha/incubator-flink scala-collections-support

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-flink/pull/177.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #177
    
----
commit c123937642983d6d9f2a049ae634f7cb9bb04779
Author: Aljoscha Krettek <al...@gmail.com>
Date:   2014-10-22T09:35:15Z

    [scala] Add macroparadise to enable Quasiquotes

commit d5803112bd95a62b1764e1afb4e0adfdda4d0ee3
Author: Aljoscha Krettek <al...@gmail.com>
Date:   2014-11-04T13:59:57Z

    [FLINK-1191] Add support for Scala Collections and Special Types
    
    "The special types" are Option and Either. This should work for all
    Scala collections except SortedSet and SortedMap, for which the type
    checker prints an error message.

----


> 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
>            Assignee: Aljoscha Krettek
>
> 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)