Skip to content

Commit

Permalink
[FLINK-10259] [table] Fix identification of key attributes for GroupW…
Browse files Browse the repository at this point in the history
…indows.

This closes apache#6641.
  • Loading branch information
fhueske committed Sep 18, 2018
1 parent 0794fa8 commit f28b829
Show file tree
Hide file tree
Showing 3 changed files with 408 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ object UpdatingPlanChecker {
.map(_.name)
// we have only a unique key if at least one window property is selected
if (windowProperties.nonEmpty) {
Some(groupKeys.map(e => (e, e)) ++ windowProperties.map(e => (e, e)))
val windowId = windowProperties.min
Some(groupKeys.map(e => (e, e)) ++ windowProperties.map(e => (e, windowId)))
} else {
None
}
Expand Down
Loading

0 comments on commit f28b829

Please sign in to comment.