[
https://issues.apache.org/jira/browse/FLINK-11226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16961834#comment-16961834
]
Dawid Wysakowicz commented on FLINK-11226:
------------------------------------------
I am not convinced about exposing this API. As Aljoscha already mentioned this
is an internal API.
I also don't think the provided example is a good argument for adding it. The
EventTimeSessionWindows.withDynamicGap does not have access to a KeyedStream.
It needs to be passed separately, which would imply serializing it into the
WindowAssigner. DataStream is not supposed to be serialized.
I will close this issue for now, feel free to reopen it if you disagree.
> Lack of getKeySelector in Scala KeyedStream API unlike Java KeyedStream
> -----------------------------------------------------------------------
>
> Key: FLINK-11226
> URL: https://issues.apache.org/jira/browse/FLINK-11226
> Project: Flink
> Issue Type: Improvement
> Components: API / DataStream
> Affects Versions: 1.7.1
> Reporter: Albert Bikeev
> Assignee: vinoyang
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> There is no simple way to access key via Scala KeyedStream API because there
> is no
> getKeySelector method, unlike in Java KeyedStream.
> Temporary workarounds are appreciated.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)