Skip to content

Commit

Permalink
Remove usage of deprecated useBlinkPlanner()
Browse files Browse the repository at this point in the history
  • Loading branch information
snuyanzin committed Aug 19, 2022
1 parent b3ebf3d commit 4cdfb26
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ public class MongoDBConnectorITCase extends MongoDBTestBase {
StreamExecutionEnvironment.getExecutionEnvironment();
private final StreamTableEnvironment tEnv =
StreamTableEnvironment.create(
env,
EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build());
env, EnvironmentSettings.newInstance().inStreamingMode().build());
@ClassRule public static LegacyRowResource usesLegacyRows = LegacyRowResource.INSTANCE;

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ public class MongoDBRegexFilterITCase extends MongoDBTestBase {
StreamExecutionEnvironment.getExecutionEnvironment();
private final StreamTableEnvironment tEnv =
StreamTableEnvironment.create(
env,
EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build());
env, EnvironmentSettings.newInstance().inStreamingMode().build());

@Before
public void before() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ public class MongoDBTimeZoneITCase extends MongoDBTestBase {
StreamExecutionEnvironment.getExecutionEnvironment();
private final StreamTableEnvironment tEnv =
StreamTableEnvironment.create(
env,
EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build());
env, EnvironmentSettings.newInstance().inStreamingMode().build());

@Parameterized.Parameter public String localTimeZone;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,8 @@ private void testConsumingAllEventsWithJsonFormat(
env.enableCheckpointing(1000);
StreamTableEnvironment tEnv =
StreamTableEnvironment.create(
env,
EnvironmentSettings.newInstance()
.useBlinkPlanner()
.inStreamingMode()
.build());
env, EnvironmentSettings.newInstance().inStreamingMode().build());

final JSONObject expected =
JSONObject.parseObject(readLines(expectedFile), JSONObject.class);
JSONObject expectSnapshot = expected.getJSONObject("expected_snapshot");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ public class MySqlCompatibilityITCase {
StreamExecutionEnvironment.getExecutionEnvironment();
private final StreamTableEnvironment tEnv =
StreamTableEnvironment.create(
env,
EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build());
env, EnvironmentSettings.newInstance().inStreamingMode().build());

@Before
public void setup() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ public class MySqlConnectorITCase extends MySqlSourceTestBase {
StreamExecutionEnvironment.getExecutionEnvironment();
private final StreamTableEnvironment tEnv =
StreamTableEnvironment.create(
env,
EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build());
env, EnvironmentSettings.newInstance().inStreamingMode().build());

// the debezium mysql connector use legacy implementation or not
private final boolean useLegacyDezMySql;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ public class MySqlTimezoneITCase {
StreamExecutionEnvironment.getExecutionEnvironment();
private final StreamTableEnvironment tEnv =
StreamTableEnvironment.create(
env,
EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build());
env, EnvironmentSettings.newInstance().inStreamingMode().build());

@Parameterized.Parameter public Boolean incrementalSnapshot;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ public class MysqlConnectorCharsetITCase extends MySqlSourceTestBase {

private final StreamTableEnvironment tEnv =
StreamTableEnvironment.create(
env,
EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build());
env, EnvironmentSettings.newInstance().inStreamingMode().build());

private final String testName;
private final String[] snapshotExpected;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ public class PolardbxCharsetITCase extends PolardbxSourceTestBase {

private final StreamTableEnvironment tEnv =
StreamTableEnvironment.create(
env,
EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build());
env, EnvironmentSettings.newInstance().inStreamingMode().build());

private final String testName;
private final String[] snapshotExpected;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ public class OceanBaseConnectorITCase extends OceanBaseTestBase {
.setParallelism(DEFAULT_PARALLELISM);
private final StreamTableEnvironment tEnv =
StreamTableEnvironment.create(
env,
EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build());
env, EnvironmentSettings.newInstance().inStreamingMode().build());

@ClassRule public static LegacyRowResource usesLegacyRows = LegacyRowResource.INSTANCE;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public class OracleConnectorITCase extends AbstractTestBase {
StreamExecutionEnvironment.getExecutionEnvironment();
private final StreamTableEnvironment tEnv =
StreamTableEnvironment.create(
env,
EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build());
env, EnvironmentSettings.newInstance().inStreamingMode().build());

@Before
public void before() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ public class PostgreSQLConnectorITCase extends PostgresTestBase {
StreamExecutionEnvironment.getExecutionEnvironment();
private final StreamTableEnvironment tEnv =
StreamTableEnvironment.create(
env,
EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build());
env, EnvironmentSettings.newInstance().inStreamingMode().build());

@ClassRule public static LegacyRowResource usesLegacyRows = LegacyRowResource.INSTANCE;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public class SqlServerConnectorITCase extends SqlServerTestBase {
StreamExecutionEnvironment.getExecutionEnvironment();
private final StreamTableEnvironment tEnv =
StreamTableEnvironment.create(
env,
EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build());
env, EnvironmentSettings.newInstance().inStreamingMode().build());

@ClassRule public static LegacyRowResource usesLegacyRows = LegacyRowResource.INSTANCE;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ public class SqlServerTimezoneITCase extends SqlServerTestBase {
StreamExecutionEnvironment.getExecutionEnvironment();
private final StreamTableEnvironment tEnv =
StreamTableEnvironment.create(
env,
EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build());
env, EnvironmentSettings.newInstance().inStreamingMode().build());

@Parameterized.Parameter public String localTimeZone;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ public class TiDBConnectorITCase extends TiDBTestBase {
StreamExecutionEnvironment.getExecutionEnvironment().setParallelism(1);
private final StreamTableEnvironment tEnv =
StreamTableEnvironment.create(
env,
EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build());
env, EnvironmentSettings.newInstance().inStreamingMode().build());

@ClassRule public static LegacyRowResource usesLegacyRows = LegacyRowResource.INSTANCE;

Expand Down

0 comments on commit 4cdfb26

Please sign in to comment.