[
https://issues.apache.org/jira/browse/FLINK-7029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Flink Jira Bot updated FLINK-7029:
----------------------------------
Labels: documentation stale-minor (was: documentation)
I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help
the community manage its development. I see this issues has been marked as
Minor but is unassigned and neither itself nor its Sub-Tasks have been updated
for 180 days. I have gone ahead and marked it "stale-minor". If this ticket is
still Minor, please either assign yourself or give an update. Afterwards,
please remove the label or in 7 days the issue will be deprioritized.
> Documentation for WindowFunction is confusing
> ---------------------------------------------
>
> Key: FLINK-7029
> URL: https://issues.apache.org/jira/browse/FLINK-7029
> Project: Flink
> Issue Type: Improvement
> Components: API / DataStream, Documentation
> Reporter: Felix Neutatz
> Priority: Minor
> Labels: documentation, stale-minor
>
> Hi,
> in the [example of the WindowFunction in the
> documentation|https://ci.apache.org/projects/flink/flink-docs-release-1.3/dev/windows.html#windowfunction---the-generic-case]
> we use WindowFunction<Tuple<String, Long>, String, String, TimeWindow>. That
> means that our key data-type is a String. For me, this is highly confusing,
> since we can only have a String data type for the key, if we implement a
> custom key selector. Usually people, especially beginners, will use something
> like keyBy(ID), keyBy("attributeName"), which will always return a tuple e.g.
> a Tuple1<String>. It would be great if somebody could change this to a tuple
> key type in the example. I am sure this might help beginners to understand
> that by default the key type is a tuple.
> Moreover, another suggestion would be that we overwrite keyBy() in a way that
> if we just get one attribute, we return this type directly instead of
> wrapping it in a Tuple1.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)