diff --git a/.github/workflows/push_pr.yml b/.github/workflows/push_pr.yml index 14fe8002d..c8d542a43 100644 --- a/.github/workflows/push_pr.yml +++ b/.github/workflows/push_pr.yml @@ -28,10 +28,10 @@ jobs: compile_and_test: strategy: matrix: - flink: [ 1.19-SNAPSHOT, 1.20-SNAPSHOT ] + flink: [ 1.19.1 ] jdk: [ '8, 11, 17, 21' ] include: - - flink: 1.18-SNAPSHOT + - flink: 1.20.0 jdk: '8, 11, 17' uses: apache/flink-connector-shared-utils/.github/workflows/ci.yml@ci_utils diff --git a/.github/workflows/weekly.yml b/.github/workflows/weekly.yml index 2be2f3c81..9a27cdada 100644 --- a/.github/workflows/weekly.yml +++ b/.github/workflows/weekly.yml @@ -30,17 +30,18 @@ jobs: strategy: matrix: flink_branches: [{ - flink: 1.18-SNAPSHOT, - jdk: '8, 11, 17', - branch: main - }, { flink: 1.19-SNAPSHOT, jdk: '8, 11, 17, 21', branch: main - }, { + }, + { flink: 1.20-SNAPSHOT, jdk: '8, 11, 17, 21', branch: main + }, { + flink: 1.19.1, + jdk: '8, 11, 17, 21', + branch: v3.2 }, { flink: 1.18.0, jdk: '8, 11, 17', diff --git a/flink-connector-jdbc-core/archunit-violations/6cdea252-f400-4c13-bc99-b325f2ebe333 b/flink-connector-jdbc-core/archunit-violations/6cdea252-f400-4c13-bc99-b325f2ebe333 new file mode 100644 index 000000000..afc724344 --- /dev/null +++ b/flink-connector-jdbc-core/archunit-violations/6cdea252-f400-4c13-bc99-b325f2ebe333 @@ -0,0 +1,264 @@ +Class extends class in (AbstractJdbcCatalog.java:0) +Class extends class in (JdbcFilterPushdownPreparedStatementVisitor.java:0) +Constructor (java.lang.ClassLoader, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)> calls constructor (java.lang.String, java.lang.String)> in (AbstractJdbcCatalog.java:123) +Constructor (java.util.function.Function)> calls constructor ()> in (JdbcFilterPushdownPreparedStatementVisitor.java:52) +Constructor (org.apache.flink.connector.jdbc.internal.options.InternalJdbcConnectionOptions, int, [Ljava.lang.String;, [Lorg.apache.flink.table.types.DataType;, [Ljava.lang.String;, org.apache.flink.table.types.logical.RowType, java.util.List, [Ljava.io.Serializable;)> has parameter of type <[Lorg.apache.flink.table.types.DataType;> in (JdbcRowDataLookupFunction.java:0) +Constructor (org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.JdbcExecutionOptions, org.apache.flink.connector.jdbc.internal.JdbcOutputFormat$StatementExecutorFactory, org.apache.flink.connector.jdbc.internal.JdbcOutputFormat$StatementExecutorFactory)> is annotated with in (TableJdbcUpsertOutputFormat.java:0) +Field has type <[Lorg.apache.flink.table.types.logical.LogicalType;> in (AbstractDialectConverter.java:0) +Field has type <[Lorg.apache.flink.table.types.DataType;> in (JdbcOutputFormatBuilder.java:0) +Method calls constructor (java.util.Map, java.lang.String)> in (AbstractJdbcCatalog.java:258) +Method calls constructor ([B)> in (JdbcCommitableSerializer.java:34) +Method calls constructor (int)> in (JdbcCommitableSerializer.java:27) +Method calls method in (JdbcCommitableSerializer.java:29) +Method calls constructor ([B)> in (JdbcWriterStateSerializer.java:48) +Method calls method in (JdbcWriterStateSerializer.java:62) +Method calls method in (JdbcWriterStateSerializer.java:70) +Method calls method in (JdbcWriterStateSerializer.java:60) +Method calls method in (JdbcWriterStateSerializer.java:68) +Method calls method in (JdbcWriterStateSerializer.java:57) +Method calls method in (JdbcWriterStateSerializer.java:65) +Method has parameter of type in (JdbcWriterStateSerializer.java:0) +Method calls constructor (int)> in (JdbcWriterStateSerializer.java:29) +Method calls method in (JdbcWriterStateSerializer.java:42) +Method calls method in (JdbcWriterStateSerializer.java:34) +Method calls method in (JdbcWriterStateSerializer.java:40) +Method calls method in (JdbcWriterStateSerializer.java:33) +Method calls method in (JdbcWriterStateSerializer.java:39) +Method calls method in (JdbcWriterStateSerializer.java:30) +Method calls method in (JdbcWriterStateSerializer.java:36) +Method is annotated with in (JdbcSource.java:0) +Method is annotated with in (JdbcSource.java:0) +Method is annotated with in (JdbcSource.java:0) +Method is annotated with in (JdbcSource.java:0) +Method is annotated with in (JdbcSource.java:0) +Method is annotated with in (SqlTemplateSplitEnumerator.java:0) +Method is annotated with in (SqlTemplateSplitEnumerator.java:0) +Method is annotated with in (JdbcSourceSplitReader.java:0) +Method is annotated with in (JdbcSourceSplitReader.java:0) +Method is annotated with in (JdbcSourceSplitReader.java:0) +Method is annotated with in (JdbcSourceSplitReader.java:0) +Method has parameter of type <[Lorg.apache.flink.configuration.ConfigOption;> in (JdbcDynamicTableFactory.java:0) +Method has parameter of type <[Lorg.apache.flink.table.types.logical.LogicalType;> in (JdbcOutputFormatBuilder.java:0) +Method has parameter of type <[Lorg.apache.flink.table.types.logical.LogicalType;> in (JdbcOutputFormatBuilder.java:0) +Method has parameter of type <[Lorg.apache.flink.table.types.logical.LogicalType;> in (JdbcOutputFormatBuilder.java:0) +Method has parameter of type <[Lorg.apache.flink.table.types.logical.LogicalType;> in (JdbcOutputFormatBuilder.java:0) +Method has parameter of type <[Lorg.apache.flink.table.types.logical.LogicalType;> in (JdbcOutputFormatBuilder.java:0) +Method has parameter of type <[Lorg.apache.flink.table.types.logical.LogicalType;> in (JdbcOutputFormatBuilder.java:0) +Method has parameter of type <[Lorg.apache.flink.table.types.logical.LogicalType;> in (JdbcOutputFormatBuilder.java:0) +Method has parameter of type <[Lorg.apache.flink.table.data.RowData$FieldGetter;> in (JdbcOutputFormatBuilder.java:0) +Method has parameter of type <[Lorg.apache.flink.table.types.DataType;> in (JdbcOutputFormatBuilder.java:0) +Method has return type <[Lorg.apache.flink.core.io.InputSplit;> in (JdbcRowDataInputFormat.java:0) +Method calls constructor ([Lorg.apache.flink.core.io.InputSplit;)> in (JdbcRowDataInputFormat.java:287) +Method has parameter of type <[Lorg.apache.flink.core.io.InputSplit;> in (JdbcRowDataInputFormat.java:0) +Method is annotated with in (JdbcRowDataLookupFunction.java:0) +Method is annotated with in (SimpleXaConnectionProvider.java:0) +Method calls constructor ([B)> in (TransactionId.java:96) +Method calls method in (TransactionId.java:101) +Method calls method in (TransactionId.java:98) +Method calls method in (TransactionId.java:99) +Method calls method in (TransactionId.java:100) +Method calls constructor ([B)> in (TransactionId.java:83) +Method calls constructor ([B)> in (TransactionId.java:87) +Method calls method in (TransactionId.java:85) +Method calls method in (TransactionId.java:88) +Method calls method in (TransactionId.java:89) +Method calls constructor (int)> in (TransactionId.java:172) +Method calls method in (TransactionId.java:175) +Method calls method in (TransactionId.java:173) +Method calls method in (TransactionId.java:174) +Method calls constructor (int)> in (TransactionId.java:158) +Method calls method in (TransactionId.java:161) +Method calls method in (TransactionId.java:159) +Method calls method in (TransactionId.java:160) +Method calls method in (TransactionId.java:110) +Method has parameter of type in (TransactionId.java:0) +Method calls constructor (int)> in (TransactionId.java:183) +Method calls method in (TransactionId.java:189) +Method calls method in (TransactionId.java:184) +Method calls method in (TransactionId.java:185) +Method calls method in (TransactionId.java:186) +Method calls method in (TransactionId.java:188) +Method calls method in (TransactionId.java:187) +Method is annotated with in (JdbcOutputFormat.java:0) +Constructor (java.lang.String, java.lang.String, int, java.util.Properties)> calls method in (JdbcConnectionOptions.java:50) +Constructor (java.lang.String, java.lang.String, int, java.util.Properties)> calls method in (JdbcConnectionOptions.java:53) +Constructor (java.lang.String, java.lang.String, int, java.util.Properties)> calls method in (JdbcConnectionOptions.java:57) +Constructor (boolean, int, boolean, java.util.Optional, boolean)> calls method in (JdbcExactlyOnceOptions.java:75) +Constructor (long, int, int)> calls method in (JdbcExecutionOptions.java:38) +Constructor (java.lang.ClassLoader, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)> calls method in (AbstractJdbcCatalog.java:126) +Constructor (java.lang.ClassLoader, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)> calls method in (AbstractJdbcCatalog.java:134) +Constructor (java.lang.ClassLoader, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)> calls method in (AbstractJdbcCatalog.java:136) +Constructor (java.lang.ClassLoader, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)> calls method in (AbstractJdbcCatalog.java:125) +Constructor (java.lang.ClassLoader, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)> calls method in (AbstractJdbcCatalog.java:133) +Constructor (org.apache.flink.table.types.logical.RowType)> calls method in (AbstractDialectConverter.java:60) +Constructor (org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.JdbcExecutionOptions, org.apache.flink.connector.jdbc.JdbcExactlyOnceOptions, org.apache.flink.connector.jdbc.datasource.statements.JdbcQueryStatement, org.apache.flink.connector.jdbc.internal.JdbcOutputSerializer, org.apache.flink.connector.base.DeliveryGuarantee, java.util.Collection, org.apache.flink.api.connector.sink2.Sink$InitContext)> calls method in (JdbcWriter.java:95) +Constructor (org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.JdbcExecutionOptions, org.apache.flink.connector.jdbc.JdbcExactlyOnceOptions, org.apache.flink.connector.jdbc.datasource.statements.JdbcQueryStatement, org.apache.flink.connector.jdbc.internal.JdbcOutputSerializer, org.apache.flink.connector.base.DeliveryGuarantee, java.util.Collection, org.apache.flink.api.connector.sink2.Sink$InitContext)> calls method in (JdbcWriter.java:100) +Constructor (org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.JdbcExecutionOptions, org.apache.flink.connector.jdbc.JdbcExactlyOnceOptions, org.apache.flink.connector.jdbc.datasource.statements.JdbcQueryStatement, org.apache.flink.connector.jdbc.internal.JdbcOutputSerializer, org.apache.flink.connector.base.DeliveryGuarantee, java.util.Collection, org.apache.flink.api.connector.sink2.Sink$InitContext)> calls method in (JdbcWriter.java:101) +Constructor (org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.JdbcExecutionOptions, org.apache.flink.connector.jdbc.JdbcExactlyOnceOptions, org.apache.flink.connector.jdbc.datasource.statements.JdbcQueryStatement, org.apache.flink.connector.jdbc.internal.JdbcOutputSerializer, org.apache.flink.connector.base.DeliveryGuarantee, java.util.Collection, org.apache.flink.api.connector.sink2.Sink$InitContext)> calls method in (JdbcWriter.java:122) +Constructor (org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.JdbcExecutionOptions, org.apache.flink.connector.jdbc.JdbcExactlyOnceOptions, org.apache.flink.connector.jdbc.datasource.statements.JdbcQueryStatement, org.apache.flink.connector.jdbc.internal.JdbcOutputSerializer, org.apache.flink.connector.base.DeliveryGuarantee, java.util.Collection, org.apache.flink.api.connector.sink2.Sink$InitContext)> calls method in (JdbcWriter.java:123) +Constructor (org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.JdbcExecutionOptions, org.apache.flink.connector.jdbc.JdbcExactlyOnceOptions, org.apache.flink.connector.jdbc.datasource.statements.JdbcQueryStatement, org.apache.flink.connector.jdbc.internal.JdbcOutputSerializer, org.apache.flink.connector.base.DeliveryGuarantee, java.util.Collection, org.apache.flink.api.connector.sink2.Sink$InitContext)> calls method in (JdbcWriter.java:82) +Constructor (org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.JdbcExecutionOptions, org.apache.flink.connector.jdbc.JdbcExactlyOnceOptions, org.apache.flink.connector.jdbc.datasource.statements.JdbcQueryStatement, org.apache.flink.connector.jdbc.internal.JdbcOutputSerializer, org.apache.flink.connector.base.DeliveryGuarantee, java.util.Collection, org.apache.flink.api.connector.sink2.Sink$InitContext)> calls method in (JdbcWriter.java:84) +Constructor (org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.JdbcExecutionOptions, org.apache.flink.connector.jdbc.JdbcExactlyOnceOptions, org.apache.flink.connector.jdbc.datasource.statements.JdbcQueryStatement, org.apache.flink.connector.jdbc.internal.JdbcOutputSerializer, org.apache.flink.connector.base.DeliveryGuarantee, java.util.Collection, org.apache.flink.api.connector.sink2.Sink$InitContext)> calls method in (JdbcWriter.java:92) +Constructor (org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.JdbcExecutionOptions, org.apache.flink.connector.jdbc.JdbcExactlyOnceOptions, org.apache.flink.connector.jdbc.datasource.statements.JdbcQueryStatement, org.apache.flink.connector.jdbc.internal.JdbcOutputSerializer, org.apache.flink.connector.base.DeliveryGuarantee, java.util.Collection, org.apache.flink.api.connector.sink2.Sink$InitContext)> calls method in (JdbcWriter.java:102) +Constructor (org.apache.flink.configuration.Configuration, org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.core.datastream.source.enumerator.JdbcSqlSplitEnumeratorBase$Provider, org.apache.flink.connector.jdbc.core.datastream.source.reader.extractor.ResultExtractor, org.apache.flink.api.common.typeinfo.TypeInformation, org.apache.flink.connector.base.DeliveryGuarantee, org.apache.flink.connector.jdbc.utils.ContinuousUnBoundingSettings)> calls method in (JdbcSource.java:78) +Constructor (org.apache.flink.configuration.Configuration, org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.core.datastream.source.enumerator.JdbcSqlSplitEnumeratorBase$Provider, org.apache.flink.connector.jdbc.core.datastream.source.reader.extractor.ResultExtractor, org.apache.flink.api.common.typeinfo.TypeInformation, org.apache.flink.connector.base.DeliveryGuarantee, org.apache.flink.connector.jdbc.utils.ContinuousUnBoundingSettings)> calls method in (JdbcSource.java:79) +Constructor (org.apache.flink.configuration.Configuration, org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.core.datastream.source.enumerator.JdbcSqlSplitEnumeratorBase$Provider, org.apache.flink.connector.jdbc.core.datastream.source.reader.extractor.ResultExtractor, org.apache.flink.api.common.typeinfo.TypeInformation, org.apache.flink.connector.base.DeliveryGuarantee, org.apache.flink.connector.jdbc.utils.ContinuousUnBoundingSettings)> calls method in (JdbcSource.java:80) +Constructor (org.apache.flink.configuration.Configuration, org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.core.datastream.source.enumerator.JdbcSqlSplitEnumeratorBase$Provider, org.apache.flink.connector.jdbc.core.datastream.source.reader.extractor.ResultExtractor, org.apache.flink.api.common.typeinfo.TypeInformation, org.apache.flink.connector.base.DeliveryGuarantee, org.apache.flink.connector.jdbc.utils.ContinuousUnBoundingSettings)> calls method in (JdbcSource.java:81) +Constructor (org.apache.flink.configuration.Configuration, org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.core.datastream.source.enumerator.JdbcSqlSplitEnumeratorBase$Provider, org.apache.flink.connector.jdbc.core.datastream.source.reader.extractor.ResultExtractor, org.apache.flink.api.common.typeinfo.TypeInformation, org.apache.flink.connector.base.DeliveryGuarantee, org.apache.flink.connector.jdbc.utils.ContinuousUnBoundingSettings)> calls method in (JdbcSource.java:84) +Constructor (org.apache.flink.connector.jdbc.core.datastream.source.split.JdbcSourceSplitSerializer)> calls method in (JdbcSourceEnumStateSerializer.java:47) +Constructor (org.apache.flink.api.connector.source.SplitEnumeratorContext, org.apache.flink.connector.jdbc.core.datastream.source.enumerator.JdbcSqlSplitEnumeratorBase, org.apache.flink.connector.jdbc.utils.ContinuousUnBoundingSettings, java.util.List)> calls method in (JdbcSourceEnumerator.java:61) +Constructor (org.apache.flink.api.connector.source.SplitEnumeratorContext, org.apache.flink.connector.jdbc.core.datastream.source.enumerator.JdbcSqlSplitEnumeratorBase, org.apache.flink.connector.jdbc.utils.ContinuousUnBoundingSettings, java.util.List)> calls method in (JdbcSourceEnumerator.java:62) +Constructor (org.apache.flink.api.connector.source.SplitEnumeratorContext, org.apache.flink.connector.jdbc.core.datastream.source.enumerator.JdbcSqlSplitEnumeratorBase, org.apache.flink.connector.jdbc.utils.ContinuousUnBoundingSettings, java.util.List)> calls method in (JdbcSourceEnumerator.java:68) +Constructor (java.util.List, java.util.List, java.util.List, java.io.Serializable)> calls method in (JdbcSourceEnumeratorState.java:47) +Constructor (java.util.List, java.util.List, java.util.List, java.io.Serializable)> calls method in (JdbcSourceEnumeratorState.java:48) +Constructor (java.util.List, java.util.List, java.util.List, java.io.Serializable)> calls method in (JdbcSourceEnumeratorState.java:49) +Constructor (java.io.Serializable, java.lang.String, org.apache.flink.connector.jdbc.split.JdbcParameterValuesProvider)> calls method in (SqlTemplateSplitEnumerator.java:54) +Constructor (org.apache.flink.api.connector.source.SourceReaderContext, org.apache.flink.configuration.Configuration, org.apache.flink.api.common.typeinfo.TypeInformation, org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.base.DeliveryGuarantee, org.apache.flink.connector.jdbc.core.datastream.source.reader.extractor.ResultExtractor)> calls method in (JdbcSourceSplitReader.java:117) +Constructor (org.apache.flink.api.connector.source.SourceReaderContext, org.apache.flink.configuration.Configuration, org.apache.flink.api.common.typeinfo.TypeInformation, org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.base.DeliveryGuarantee, org.apache.flink.connector.jdbc.core.datastream.source.reader.extractor.ResultExtractor)> calls method in (JdbcSourceSplitReader.java:104) +Constructor (org.apache.flink.api.connector.source.SourceReaderContext, org.apache.flink.configuration.Configuration, org.apache.flink.api.common.typeinfo.TypeInformation, org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.base.DeliveryGuarantee, org.apache.flink.connector.jdbc.core.datastream.source.reader.extractor.ResultExtractor)> calls method in (JdbcSourceSplitReader.java:105) +Constructor (org.apache.flink.api.connector.source.SourceReaderContext, org.apache.flink.configuration.Configuration, org.apache.flink.api.common.typeinfo.TypeInformation, org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.base.DeliveryGuarantee, org.apache.flink.connector.jdbc.core.datastream.source.reader.extractor.ResultExtractor)> calls method in (JdbcSourceSplitReader.java:106) +Constructor (org.apache.flink.api.connector.source.SourceReaderContext, org.apache.flink.configuration.Configuration, org.apache.flink.api.common.typeinfo.TypeInformation, org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.base.DeliveryGuarantee, org.apache.flink.connector.jdbc.core.datastream.source.reader.extractor.ResultExtractor)> calls method in (JdbcSourceSplitReader.java:107) +Constructor (org.apache.flink.api.connector.source.SourceReaderContext, org.apache.flink.configuration.Configuration, org.apache.flink.api.common.typeinfo.TypeInformation, org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.base.DeliveryGuarantee, org.apache.flink.connector.jdbc.core.datastream.source.reader.extractor.ResultExtractor)> calls method in (JdbcSourceSplitReader.java:112) +Constructor (org.apache.flink.api.connector.source.SourceReaderContext, org.apache.flink.configuration.Configuration, org.apache.flink.api.common.typeinfo.TypeInformation, org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.base.DeliveryGuarantee, org.apache.flink.connector.jdbc.core.datastream.source.reader.extractor.ResultExtractor)> calls method in (JdbcSourceSplitReader.java:120) +Constructor (org.apache.flink.connector.jdbc.core.datastream.source.split.JdbcSourceSplit)> calls method in (JdbcSourceSplitState.java:38) +Constructor (org.apache.flink.connector.jdbc.internal.options.InternalJdbcConnectionOptions, int, [Ljava.lang.String;, [Lorg.apache.flink.table.types.DataType;, [Ljava.lang.String;, org.apache.flink.table.types.logical.RowType, java.util.List, [Ljava.io.Serializable;)> calls method in (JdbcRowDataLookupFunction.java:95) +Constructor (org.apache.flink.connector.jdbc.internal.options.InternalJdbcConnectionOptions, int, [Ljava.lang.String;, [Lorg.apache.flink.table.types.DataType;, [Ljava.lang.String;, org.apache.flink.table.types.logical.RowType, java.util.List, [Ljava.io.Serializable;)> calls method in (JdbcRowDataLookupFunction.java:82) +Constructor (org.apache.flink.connector.jdbc.internal.options.InternalJdbcConnectionOptions, int, [Ljava.lang.String;, [Lorg.apache.flink.table.types.DataType;, [Ljava.lang.String;, org.apache.flink.table.types.logical.RowType, java.util.List, [Ljava.io.Serializable;)> calls method in (JdbcRowDataLookupFunction.java:83) +Constructor (org.apache.flink.connector.jdbc.internal.options.InternalJdbcConnectionOptions, int, [Ljava.lang.String;, [Lorg.apache.flink.table.types.DataType;, [Ljava.lang.String;, org.apache.flink.table.types.logical.RowType, java.util.List, [Ljava.io.Serializable;)> calls method in (JdbcRowDataLookupFunction.java:84) +Constructor (org.apache.flink.connector.jdbc.internal.options.InternalJdbcConnectionOptions, int, [Ljava.lang.String;, [Lorg.apache.flink.table.types.DataType;, [Ljava.lang.String;, org.apache.flink.table.types.logical.RowType, java.util.List, [Ljava.io.Serializable;)> calls method in (JdbcRowDataLookupFunction.java:85) +Constructor (org.apache.flink.connector.jdbc.internal.options.InternalJdbcConnectionOptions, int, [Ljava.lang.String;, [Lorg.apache.flink.table.types.DataType;, [Ljava.lang.String;, org.apache.flink.table.types.logical.RowType, java.util.List, [Ljava.io.Serializable;)> calls method in (JdbcRowDataLookupFunction.java:86) +Constructor (org.apache.flink.connector.jdbc.internal.options.InternalJdbcConnectionOptions, int, [Ljava.lang.String;, [Lorg.apache.flink.table.types.DataType;, [Ljava.lang.String;, org.apache.flink.table.types.logical.RowType, java.util.List, [Ljava.io.Serializable;)> calls method in (JdbcRowDataLookupFunction.java:87) +Constructor (java.util.function.Supplier, java.lang.Integer)> calls method in (SimpleXaConnectionProvider.java:81) +Constructor (int, [B, [B)> calls method in (XidImpl.java:46) +Constructor (int, [B, [B)> calls method in (XidImpl.java:47) +Constructor (org.apache.flink.connector.jdbc.internal.JdbcOutputFormat)> calls method in (GenericJdbcSinkFunction.java:44) +Constructor (org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.JdbcExecutionOptions, org.apache.flink.connector.jdbc.internal.JdbcOutputFormat$StatementExecutorFactory)> calls method in (JdbcOutputFormat.java:87) +Constructor (org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.JdbcExecutionOptions, org.apache.flink.connector.jdbc.internal.JdbcOutputFormat$StatementExecutorFactory)> calls method in (JdbcOutputFormat.java:88) +Constructor (org.apache.flink.connector.jdbc.datasource.connections.JdbcConnectionProvider, org.apache.flink.connector.jdbc.JdbcExecutionOptions, org.apache.flink.connector.jdbc.internal.JdbcOutputFormat$StatementExecutorFactory)> calls method in (JdbcOutputFormat.java:89) +Constructor (java.lang.String, java.lang.String, java.lang.String, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, java.util.function.Function, java.util.function.Function)> calls method in (InsertOrUpdateJdbcExecutor.java:76) +Constructor (java.lang.String, java.lang.String, java.lang.String, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, java.util.function.Function, java.util.function.Function)> calls method in (InsertOrUpdateJdbcExecutor.java:77) +Constructor (java.lang.String, java.lang.String, java.lang.String, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, java.util.function.Function, java.util.function.Function)> calls method in (InsertOrUpdateJdbcExecutor.java:78) +Constructor (java.lang.String, java.lang.String, java.lang.String, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, java.util.function.Function, java.util.function.Function)> calls method in (InsertOrUpdateJdbcExecutor.java:79) +Constructor (java.lang.String, java.lang.String, java.lang.String, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, java.util.function.Function, java.util.function.Function)> calls method in (InsertOrUpdateJdbcExecutor.java:80) +Constructor (java.lang.String, java.lang.String, java.lang.String, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, java.util.function.Function, java.util.function.Function)> calls method in (InsertOrUpdateJdbcExecutor.java:81) +Constructor (java.lang.String, java.lang.String, java.lang.String, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, java.util.function.Function, java.util.function.Function)> calls method in (InsertOrUpdateJdbcExecutor.java:82) +Constructor (java.lang.String, java.lang.String, java.lang.String, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, org.apache.flink.connector.jdbc.JdbcStatementBuilder, java.util.function.Function, java.util.function.Function)> calls method in (InsertOrUpdateJdbcExecutor.java:83) +Method calls constructor (java.lang.String)> in (JdbcOutputFormat.java:103) +Method calls method in (JdbcOutputFormat.java:94) +Method calls method in (RowJdbcOutputFormat.java:132) +Method calls method in (TableJdbcUpsertOutputFormat.java:152) +Method calls method in (InternalJdbcConnectionOptions.java:202) +Method calls method in (InternalJdbcConnectionOptions.java:203) +Method calls method in (InternalJdbcConnectionOptions.java:195) +Method calls method in (InternalJdbcConnectionOptions.java:196) +Method calls method in (JdbcNumericBetweenParametersProvider.java:100) +Method calls method in (JdbcNumericBetweenParametersProvider.java:87) +Method calls method in (JdbcNumericBetweenParametersProvider.java:75) +Method calls method in (JdbcSlideTimingParameterProvider.java:76) +Method calls method in (FieldNamedPreparedStatementImpl.java:247) +Method calls method in (FieldNamedPreparedStatementImpl.java:202) +Method calls method in (FieldNamedPreparedStatementImpl.java:212) +Method calls method in (FieldNamedPreparedStatementImpl.java:187) +Method calls method in (FieldNamedPreparedStatementImpl.java:188) +Method calls method in (FieldNamedPreparedStatementImpl.java:189) +Method calls method in (JdbcUtils.java:49) +Constructor (org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, java.util.function.Function)> calls method in (TableInsertOrUpdateStatementExecutor.java:64) +Constructor (org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, java.util.function.Function)> calls method in (TableInsertOrUpdateStatementExecutor.java:65) +Constructor (org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, java.util.function.Function)> calls method in (TableInsertOrUpdateStatementExecutor.java:66) +Constructor (org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, java.util.function.Function)> calls method in (TableInsertOrUpdateStatementExecutor.java:67) +Constructor (org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, java.util.function.Function)> calls method in (TableInsertOrUpdateStatementExecutor.java:68) +Constructor (org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter, java.util.function.Function)> calls method in (TableInsertOrUpdateStatementExecutor.java:69) +Constructor (org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter)> calls method in (TableSimpleStatementExecutor.java:48) +Constructor (org.apache.flink.connector.jdbc.statement.StatementFactory, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialectConverter)> calls method in (TableSimpleStatementExecutor.java:49) +Constructor (java.lang.String, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialect, [Ljava.lang.String;, [I, [Ljava.lang.String;)> calls method in (JdbcDmlOptions.java:51) +Constructor (java.lang.String, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialect, [Ljava.lang.String;, [I, [Ljava.lang.String;)> calls method in (JdbcDmlOptions.java:52) +Constructor (java.lang.String, org.apache.flink.connector.jdbc.core.database.dialect.JdbcDialect, [Ljava.lang.String;, [I, [Ljava.lang.String;)> calls method in (JdbcDmlOptions.java:53) +Constructor (java.lang.String, [I)> calls method in (JdbcInsertOptions.java:33) +Constructor (org.apache.flink.connector.jdbc.split.JdbcParameterValuesProvider, org.apache.flink.connector.jdbc.split.JdbcParameterValuesProvider)> calls method in (CompositeJdbcParameterValuesProvider.java:34) +Constructor (long, long)> calls method in (JdbcNumericBetweenParametersProvider.java:55) +Constructor (long, long, long)> calls method in (JdbcNumericBetweenParametersProvider.java:68) +Constructor (java.lang.Long, long, long, long)> calls method in (JdbcSlideTimingParameterProvider.java:46) +Constructor (java.lang.Long, long, long, long)> calls method in (JdbcSlideTimingParameterProvider.java:49) +Constructor (java.lang.Long, long, long, long)> calls method in (JdbcSlideTimingParameterProvider.java:53) +Constructor (java.lang.Long, long, long, long)> calls method in (JdbcSlideTimingParameterProvider.java:45) +Constructor (java.time.Duration, java.time.Duration)> calls method in (ContinuousUnBoundingSettings.java:44) +Interface extends interface in (JdbcStatementBuilder.java:0) +Method calls method in (JdbcSourceSplitSerializer.java:98) +Method calls method in (JdbcSourceSplitSerializer.java:46) +Method calls method in (JdbcSourceSplitSerializer.java:80) +Method calls method in (JdbcSourceSplitSerializer.java:85) +Method calls method in (JdbcDynamicTableFactory.java:356) +Method calls method in (JdbcDynamicTableSink.java:69) +Method calls method in (JdbcOutputFormatBuilder.java:81) +Method calls method in (JdbcOutputFormatBuilder.java:82) +Method calls method in (JdbcOutputFormatBuilder.java:83) +Method calls method in (JdbcOutputFormatBuilder.java:116) +Method calls method in (JdbcDynamicTableSource.java:106) +Method calls method in (JdbcRowDataInputFormat.java:356) +Method calls method in (SimpleJdbcConnectionProvider.java:87) +Method calls method in (PoolingXaConnectionProvider.java:109) +Method calls method in (PoolingXaConnectionProvider.java:79) +Method calls method in (PoolingXaConnectionProvider.java:202) +Method calls method in (PoolingXaConnectionProvider.java:91) +Method calls method in (SimpleXaConnectionProvider.java:261) +Method calls method in (SimpleXaConnectionProvider.java:128) +Method calls method in (SimpleXaConnectionProvider.java:101) +Method calls method in (SimpleXaConnectionProvider.java:87) +Method calls method in (SimpleXaConnectionProvider.java:246) +Method calls method in (XaTransaction.java:121) +Method calls method in (XaTransaction.java:122) +Method calls method in (XaTransaction.java:135) +Method calls method in (XaTransaction.java:130) +Method calls method in (XaTransaction.java:86) +Method calls method in (XaTransaction.java:151) +Method calls method in (TransactionId.java:169) +Method calls method in (JdbcConnectionOptions.java:116) +Method calls method in (JdbcConnectionOptions.java:117) +Method calls method in (JdbcInputFormat.java:407) +Method calls method in (AbstractJdbcCatalog.java:227) +Method calls method in (AbstractJdbcCatalog.java:254) +Method calls method in (AbstractJdbcCatalog.java:200) +Method calls method in (AbstractJdbcCatalog.java:586) +Method calls method in (AbstractDialect.java:256) +Method calls method in (JdbcSinkBuilder.java:111) +Method calls method in (JdbcSinkBuilder.java:112) +Method calls method in (JdbcSinkBuilder.java:113) +Method calls method in (JdbcSinkBuilder.java:114) +Method calls method in (JdbcSinkBuilder.java:115) +Method calls method in (JdbcSinkBuilder.java:67) +Method calls method in (JdbcSinkBuilder.java:73) +Method calls method in (JdbcSinkBuilder.java:78) +Method calls method in (JdbcSinkBuilder.java:101) +Method calls method in (JdbcSinkBuilder.java:102) +Method calls method in (JdbcSinkBuilder.java:85) +Method calls method in (JdbcSinkBuilder.java:86) +Method calls method in (JdbcSinkBuilder.java:51) +Method calls method in (JdbcWriter.java:192) +Method calls method in (JdbcSourceBuilder.java:295) +Method calls method in (JdbcSourceBuilder.java:304) +Method calls method in (JdbcSourceBuilder.java:276) +Method calls method in (JdbcSourceBuilder.java:291) +Method calls method in (JdbcSourceBuilder.java:292) +Method calls method in (JdbcSourceBuilder.java:289) +Method calls method in (JdbcSourceBuilder.java:218) +Method calls method in (JdbcSourceBuilder.java:219) +Method calls method in (JdbcSourceBuilder.java:259) +Method calls method in (JdbcSourceBuilder.java:169) +Method calls method in (JdbcSourceBuilder.java:207) +Method calls method in (JdbcSourceBuilder.java:161) +Method calls method in (JdbcSourceBuilder.java:202) +Method calls method in (JdbcSourceBuilder.java:145) +Method calls method in (JdbcSourceBuilder.java:249) +Method calls method in (JdbcSourceBuilder.java:225) +Method calls method in (JdbcSourceBuilder.java:136) +Method calls method in (JdbcSourceBuilder.java:178) +Method calls method in (JdbcSourceEnumStateSerializer.java:110) +Method calls method in (JdbcSourceEnumStateSerializer.java:70) +Method calls method in (JdbcSourceEnumStateSerializer.java:58) +Method calls method in (JdbcSourceEnumStateSerializer.java:86) +Method calls method in (SqlTemplateSplitEnumerator.java:118) +Method calls method in (JdbcSourceSplitReader.java:138) +Method calls method in (JdbcSourceSplitReader.java:165) +Method calls method in (RowResultExtractor.java:33) +Method calls method in (JdbcSourceSplit.java:71) +Method calls method in (JdbcSourceSplitSerializer.java:98) \ No newline at end of file diff --git a/flink-connector-jdbc-core/archunit-violations/stored.rules b/flink-connector-jdbc-core/archunit-violations/stored.rules index 0f9bf9b46..f672a47dc 100644 --- a/flink-connector-jdbc-core/archunit-violations/stored.rules +++ b/flink-connector-jdbc-core/archunit-violations/stored.rules @@ -1,10 +1,16 @@ # -#Tue May 28 16:21:17 CEST 2024 +#Thu Sep 19 20:56:19 PDT 2024 Return\ and\ argument\ types\ of\ methods\ annotated\ with\ @Public\ must\ be\ annotated\ with\ @Public.=596bd7eb-1ed5-4963-a56a-941766d61233 Connector\ production\ code\ must\ not\ depend\ on\ non-public\ API\ outside\ of\ connector\ packages=f242ee43-a122-4d2f-a291-6439cdb9029f +Classes\ in\ API\ packages\ should\ have\ at\ least\ one\ API\ visibility\ annotation.=0c7b60d6-a12c-432d-8a72-747cabaeb7ed ITCASE\ tests\ should\ use\ a\ MiniCluster\ resource\ or\ extension=6b9ab1b0-c14d-4667-bab5-407b81fba98b Production\ code\ must\ not\ call\ methods\ annotated\ with\ @VisibleForTesting=4bca2274-65a9-4a61-81ef-767d58233ea0 Options\ for\ connectors\ and\ formats\ should\ reside\ in\ a\ consistent\ package\ and\ be\ public\ API.=b10c194a-0517-4744-830f-81abfb71ab18 Tests\ inheriting\ from\ AbstractTestBase\ should\ have\ name\ ending\ with\ ITCase=0f94f11b-9bc8-445a-8be8-e7dfd8a384b0 +Options\ for\ connectors\ and\ formats\ should\ reside\ in\ a\ consistent\ package\ and\ be\ public\ API.=b10c194a-0517-4744-830f-81abfb71ab18 +Connector\ production\ code\ must\ not\ depend\ on\ non-public\ API\ outside\ of\ connector\ packages=f242ee43-a122-4d2f-a291-6439cdb9029f +Production\ code\ must\ not\ call\ methods\ annotated\ with\ @VisibleForTesting=4bca2274-65a9-4a61-81ef-767d58233ea0 +Connector\ production\ code\ must\ depend\ only\ on\ public\ API\ when\ outside\ of\ connector\ packages=6cdea252-f400-4c13-bc99-b325f2ebe333 +Return\ and\ argument\ types\ of\ methods\ annotated\ with\ @Public\ must\ be\ annotated\ with\ @Public.=596bd7eb-1ed5-4963-a56a-941766d61233 Return\ and\ argument\ types\ of\ methods\ annotated\ with\ @PublicEvolving\ must\ be\ annotated\ with\ @Public(Evolving).=d45c3af5-52c6-45fd-9926-75e75e77473a Classes\ in\ API\ packages\ should\ have\ at\ least\ one\ API\ visibility\ annotation.=0c7b60d6-a12c-432d-8a72-747cabaeb7ed diff --git a/pom.xml b/pom.xml index fa8d48376..ec6a35496 100644 --- a/pom.xml +++ b/pom.xml @@ -56,10 +56,9 @@ under the License. - 1.18.0 + 1.20.0 2.12 2.12.7 - 2.13.4.20221013 4.13.2 5.10.1