[
https://issues.apache.org/jira/browse/FLINK-2633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14734890#comment-14734890
]
ASF GitHub Bot commented on FLINK-2633:
---------------------------------------
Github user tillrohrmann commented on the pull request:
https://github.com/apache/flink/pull/1104#issuecomment-138583453
Oh I have to correct myself. It's even worse then expected. Not only
`OptionTypeInfo` and `EitherTypeInfo` are broken but also `EnumTypeInfo` and
`TryTypeInfo` because they don't implement `equals`. Furthermore, the `equals`
method of `RecordTypeInfo`, `WritableTypeInfo` and `GenericTypeInfo` will fail
with a `NullPointerException` when called with `null`. The
`PrimitiveArrayTypeInfo` does not implement the `hashCode` method.
> OptionTypeInfo does not have proper equals and hashCode method
> --------------------------------------------------------------
>
> Key: FLINK-2633
> URL: https://issues.apache.org/jira/browse/FLINK-2633
> Project: Flink
> Issue Type: Bug
> Reporter: Till Rohrmann
> Assignee: Till Rohrmann
>
> The {{OptionTypeInfo}} does not have a proper {{equals}} and {{hashCode}}
> definition. As a consequence, types which contain an option type won't be
> detected to be equal even though the element type of the option is identical.
> This can cause problems when you try to union two data sets of type
> {{DataSet[Option[Int]]}}, for example.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)