You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Fabian Hueske (JIRA)" <ji...@apache.org> on 2016/08/23 14:29:20 UTC
[jira] [Resolved] (FLINK-3866) StringArraySerializer claims type is
immutable; shouldn't
[ https://issues.apache.org/jira/browse/FLINK-3866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabian Hueske resolved FLINK-3866.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.1.2
1.2.0
Fixed for 1.2.0 with 502ae585c13b67a2510ca27d5b02fb09f288e15b
Fixed for 1.1.2 with e352ce4be8e8bc1cb75b40682aa8b9b4c99fb63e
Thanks for the fix!
> StringArraySerializer claims type is immutable; shouldn't
> ---------------------------------------------------------
>
> Key: FLINK-3866
> URL: https://issues.apache.org/jira/browse/FLINK-3866
> Project: Flink
> Issue Type: Improvement
> Components: Core
> Affects Versions: 1.0.3
> Reporter: Tatu Saloranta
> Assignee: Ivan Mushketyk
> Priority: Minor
> Fix For: 1.2.0, 1.1.2
>
>
> Looking at default `TypeSerializer` instances I noticed what looks like a minor flaw, unless I am missing something.
> Whereas all other array serializers indicate that type is not immutable (since in Java, arrays are not immutable), `StringArraySerializer` has:
> ```
> @Override
> public boolean isImmutableType() {
> return true;
> }
> ```
> and I think it should instead return `false`. I could create a PR, but seems like a small enough thing that issue report makes more sense.
> I tried looking for deps to see if there's a test for this, but couldn't find one; otherwise could submit a test fix.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)