Skip to content

Commit

Permalink
[hotfix][test] Fix TypeHintITCase if adaptive scheduler enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
reswqa committed Oct 11, 2024
1 parent 7b351fd commit d2c241a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package org.apache.flink.test.operators;

import org.apache.flink.api.common.RuntimeExecutionMode;
import org.apache.flink.api.common.functions.CoGroupFunction;
import org.apache.flink.api.common.functions.FlatJoinFunction;
import org.apache.flink.api.common.functions.FlatMapFunction;
Expand Down Expand Up @@ -109,6 +110,7 @@ public void testFlatMapWithClassTypeHint() throws Exception {
@Test
public void testJoinWithTypeInformationTypeHint() throws Exception {
final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
env.setRuntimeMode(RuntimeExecutionMode.BATCH);

DataStreamSource<Tuple3<Integer, Long, String>> ds1 =
CollectionDataStreams.getSmall3TupleDataSet(env);
Expand All @@ -134,6 +136,7 @@ public void testJoinWithTypeInformationTypeHint() throws Exception {
@Test
public void testFlatJoinWithTypeInformationTypeHint() throws Exception {
final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
env.setRuntimeMode(RuntimeExecutionMode.BATCH);

DataStreamSource<Tuple3<Integer, Long, String>> ds1 =
CollectionDataStreams.getSmall3TupleDataSet(env);
Expand All @@ -159,6 +162,7 @@ public void testFlatJoinWithTypeInformationTypeHint() throws Exception {
@Test
public void testCoGroupWithTypeInformationTypeHint() throws Exception {
final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
env.setRuntimeMode(RuntimeExecutionMode.BATCH);

DataStreamSource<Tuple3<Integer, Long, String>> ds1 =
CollectionDataStreams.getSmall3TupleDataSet(env);
Expand Down

0 comments on commit d2c241a

Please sign in to comment.