Skip to content

Commit

Permalink
[FLINK-9935] [table] Fix incorrect group field access in batch window…
Browse files Browse the repository at this point in the history
… combiner.
  • Loading branch information
fhueske committed Jul 26, 2018
1 parent 0f9b96f commit 63e84ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ object AggregateUtil {
isDistinctAggs,
isStateBackedDataViews = false,
partialResults = true,
groupings,
groupings.indices.toArray,
Some(aggregates.indices.map(_ + groupings.length).toArray),
outputType.getFieldCount,
needRetract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class GroupWindowITCase(
val table = env
.fromCollection(data)
.toTable(tEnv, 'long, 'int, 'double, 'float, 'bigdec, 'string)
.select('int, 'long, 'string) // keep this select to enforce that the 'string key comes last

val windowedTable = table
.window(Tumble over 5.milli on 'long as 'w)
Expand Down Expand Up @@ -271,6 +272,7 @@ class GroupWindowITCase(
val table = env
.fromCollection(data)
.toTable(tEnv, 'long, 'int, 'double, 'float, 'bigdec, 'string)
.select('int, 'long, 'string) // keep this select to enforce that the 'string key comes last

val windowedTable = table
.window(Slide over 10.milli every 5.milli on 'long as 'w)
Expand Down

0 comments on commit 63e84ad

Please sign in to comment.