Skip to content

Commit 05775ba

Browse files
committed
[FLINK-36336] Remove deprecated dataset API exclude table module
1 parent 773ea76 commit 05775ba

File tree

701 files changed

+2187
-97492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

701 files changed

+2187
-97492
lines changed

flink-architecture-tests/flink-architecture-tests-production/archunit-violations/18509c9e-3250-4c52-91b9-11ccefc85db1

+4
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ org.apache.flink.core.fs.FileSystem.initOutPathLocalFS(org.apache.flink.core.fs.
8888
org.apache.flink.core.fs.FileSystem.initialize(org.apache.flink.configuration.Configuration, org.apache.flink.core.plugin.PluginManager): Argument leaf type org.apache.flink.core.plugin.PluginManager does not satisfy: reside outside of package 'org.apache.flink..' or reside in any package ['..shaded..'] or annotated with @Public or annotated with @Deprecated
8989
org.apache.flink.core.fs.FileSystem.initialize(org.apache.flink.configuration.Configuration, org.apache.flink.core.plugin.PluginManager): Exception leaf type org.apache.flink.configuration.IllegalConfigurationException does not satisfy: reside outside of package 'org.apache.flink..' or reside in any package ['..shaded..'] or annotated with @Public or annotated with @Deprecated
9090
org.apache.flink.core.io.InputSplitSource.getInputSplitAssigner([Lorg.apache.flink.core.io.InputSplit;): Returned leaf type org.apache.flink.core.io.InputSplitAssigner does not satisfy: reside outside of package 'org.apache.flink..' or reside in any package ['..shaded..'] or annotated with @Public or annotated with @Deprecated
91+
org.apache.flink.hadoopcompatibility.mapred.HadoopReduceFunction.apply(java.lang.Object, org.apache.flink.streaming.api.windowing.windows.GlobalWindow, java.lang.Iterable, org.apache.flink.util.Collector): Argument leaf type org.apache.flink.streaming.api.windowing.windows.GlobalWindow does not satisfy: reside outside of package 'org.apache.flink..' or reside in any package ['..shaded..'] or annotated with @Public or annotated with @Deprecated
92+
org.apache.flink.hadoopcompatibility.mapred.HadoopReduceFunction.apply(java.lang.Object, org.apache.flink.streaming.api.windowing.windows.Window, java.lang.Iterable, org.apache.flink.util.Collector): Argument leaf type org.apache.flink.streaming.api.windowing.windows.Window does not satisfy: reside outside of package 'org.apache.flink..' or reside in any package ['..shaded..'] or annotated with @Public or annotated with @Deprecated
93+
org.apache.flink.hadoopcompatibility.mapred.HadoopReduceFunction.apply(org.apache.flink.streaming.api.windowing.windows.GlobalWindow, java.lang.Iterable, org.apache.flink.util.Collector): Argument leaf type org.apache.flink.streaming.api.windowing.windows.GlobalWindow does not satisfy: reside outside of package 'org.apache.flink..' or reside in any package ['..shaded..'] or annotated with @Public or annotated with @Deprecated
94+
org.apache.flink.hadoopcompatibility.mapred.HadoopReduceFunction.apply(org.apache.flink.streaming.api.windowing.windows.Window, java.lang.Iterable, org.apache.flink.util.Collector): Argument leaf type org.apache.flink.streaming.api.windowing.windows.Window does not satisfy: reside outside of package 'org.apache.flink..' or reside in any package ['..shaded..'] or annotated with @Public or annotated with @Deprecated
9195
org.apache.flink.runtime.jobgraph.tasks.InputSplitProvider.getNextInputSplit(java.lang.ClassLoader): Exception leaf type org.apache.flink.runtime.jobgraph.tasks.InputSplitProviderException does not satisfy: reside outside of package 'org.apache.flink..' or reside in any package ['..shaded..'] or annotated with @Public or annotated with @Deprecated
9296
org.apache.flink.streaming.api.checkpoint.CheckpointedFunction.initializeState(org.apache.flink.runtime.state.FunctionInitializationContext): Argument leaf type org.apache.flink.runtime.state.FunctionInitializationContext does not satisfy: reside outside of package 'org.apache.flink..' or reside in any package ['..shaded..'] or annotated with @Public or annotated with @Deprecated
9397
org.apache.flink.streaming.api.checkpoint.CheckpointedFunction.snapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext): Argument leaf type org.apache.flink.runtime.state.FunctionSnapshotContext does not satisfy: reside outside of package 'org.apache.flink..' or reside in any package ['..shaded..'] or annotated with @Public or annotated with @Deprecated

flink-architecture-tests/flink-architecture-tests-production/archunit-violations/7602816f-5c01-4b7a-9e3e-235dfedec245

-5
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ org.apache.flink.api.common.typeutils.base.array.LongPrimitiveArraySerializer$Lo
8686
org.apache.flink.api.common.typeutils.base.array.ShortPrimitiveArraySerializer$ShortPrimitiveArraySerializerSnapshot does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
8787
org.apache.flink.api.common.typeutils.base.array.StringArraySerializer$StringArraySerializerSnapshot does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
8888
org.apache.flink.api.connector.source.lib.NumberSequenceSource$NumberSequenceSplit does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
89-
org.apache.flink.api.java.Utils$ChecksumHashCode does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
90-
org.apache.flink.api.java.Utils$ChecksumHashCodeHelper does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
91-
org.apache.flink.api.java.Utils$CollectHelper does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
92-
org.apache.flink.api.java.Utils$CountHelper does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
9389
org.apache.flink.api.java.aggregation.MaxAggregationFunction$MaxAggregationFunctionFactory does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
9490
org.apache.flink.api.java.aggregation.MinAggregationFunction$MinAggregationFunctionFactory does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
9591
org.apache.flink.api.java.aggregation.SumAggregationFunction$SumAggregationFunctionFactory does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
@@ -143,7 +139,6 @@ org.apache.flink.api.java.typeutils.runtime.RowSerializer$RowSerializerSnapshot
143139
org.apache.flink.api.java.typeutils.runtime.Tuple0SerializerSnapshot does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
144140
org.apache.flink.api.java.typeutils.runtime.ValueSerializer$ValueSerializerSnapshot does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
145141
org.apache.flink.api.java.typeutils.runtime.kryo.ChillSerializerRegistrar does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
146-
org.apache.flink.api.java.typeutils.runtime.kryo.FlinkChillPackageRegistrar does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
147142
org.apache.flink.api.java.typeutils.runtime.kryo.JavaSerializer does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
148143
org.apache.flink.api.java.typeutils.runtime.kryo.KryoSerializer does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated
149144
org.apache.flink.api.java.typeutils.runtime.kryo.KryoSerializerSnapshot does not satisfy: annotated with @Internal or annotated with @Experimental or annotated with @PublicEvolving or annotated with @Public or annotated with @Deprecated

flink-clients/pom.xml

-12
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,6 @@ under the License.
5757
<version>${project.version}</version>
5858
</dependency>
5959

60-
<dependency>
61-
<groupId>org.apache.flink</groupId>
62-
<artifactId>flink-optimizer</artifactId>
63-
<version>${project.version}</version>
64-
</dependency>
65-
66-
<dependency>
67-
<groupId>org.apache.flink</groupId>
68-
<artifactId>flink-java</artifactId>
69-
<version>${project.version}</version>
70-
</dependency>
71-
7260
<dependency>
7361
<groupId>commons-cli</groupId>
7462
<artifactId>commons-cli</artifactId>

flink-clients/src/main/java/org/apache/flink/client/ClientUtils.java

-9
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import org.apache.flink.api.common.JobID;
2222
import org.apache.flink.api.common.JobStatus;
2323
import org.apache.flink.client.cli.ClientOptions;
24-
import org.apache.flink.client.program.ContextEnvironment;
2524
import org.apache.flink.client.program.PackagedProgram;
2625
import org.apache.flink.client.program.ProgramInvocationException;
2726
import org.apache.flink.client.program.StreamContextEnvironment;
@@ -91,13 +90,6 @@ public static void executeProgram(
9190
"Starting program (detached: {})",
9291
!configuration.get(DeploymentOptions.ATTACHED));
9392

94-
ContextEnvironment.setAsContext(
95-
executorServiceLoader,
96-
configuration,
97-
userCodeClassLoader,
98-
enforceSingleJobExecution,
99-
suppressSysout);
100-
10193
StreamContextEnvironment.setAsContext(
10294
executorServiceLoader,
10395
configuration,
@@ -112,7 +104,6 @@ public static void executeProgram(
112104
try {
113105
program.invokeInteractiveModeForExecution();
114106
} finally {
115-
ContextEnvironment.unsetAsContext();
116107
StreamContextEnvironment.unsetAsContext();
117108
// For DataStream v2.
118109
ExecutionContextEnvironment.unsetAsContext();

flink-clients/src/main/java/org/apache/flink/client/FlinkPipelineTranslationUtil.java

-5
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ public static String translateToJSONExecutionPlan(
8383

8484
private static FlinkPipelineTranslator getPipelineTranslator(
8585
ClassLoader userClassloader, Pipeline pipeline) {
86-
PlanTranslator planTranslator = new PlanTranslator();
87-
88-
if (planTranslator.canTranslate(pipeline)) {
89-
return planTranslator;
90-
}
9186

9287
StreamGraphTranslator streamGraphTranslator = new StreamGraphTranslator(userClassloader);
9388

flink-clients/src/main/java/org/apache/flink/client/PlanTranslator.java

-94
This file was deleted.

0 commit comments

Comments
 (0)