Skip to content

Commit

Permalink
[FLINK-18453][tests] Fix overflow of AggregateITCase#testAggregationC…
Browse files Browse the repository at this point in the history
…odeSplit

This closes apache#12861
  • Loading branch information
libenchao committed Jul 10, 2020
1 parent b3e8fde commit e162bd7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,10 @@ class AggregateITCase(
.toTable(tEnv, 'a, 'b, 'c)
tEnv.createTemporaryView("MyTable", t)

val columnNumber = 500
tEnv.getConfig.setMaxGeneratedCodeLength(2048)

// 50 can make sure all generated methods of [Namespace]AggsHandleFunction is longer than 2048
val columnNumber = 50

val selectList = Stream.range(3, columnNumber)
.map(i => s"SUM(CASE WHEN a IS NOT NULL AND a > $i THEN 0 WHEN a < 0 THEN 0 ELSE $i END)")
Expand Down

0 comments on commit e162bd7

Please sign in to comment.