You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FLINK-39252][sqlserver] Address review feedback for pipeline and source connectors
- handle null namespace in metadata accessor
- register chunk-key option and improve tables validation messages
- relax SQL Server database-name validation and escape bracket quoting
- fix FLOAT/REAL type mapping and clean up option/docs wording
- tighten tests for chunk-key support, malformed tables format, and quote escaping
- fail fast on SQL Server error 313 when CDC LSN window has been purged
Copy file name to clipboardExpand all lines: flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-sqlserver/src/main/java/org/apache/flink/cdc/connectors/sqlserver/factory/SqlServerDataSourceFactory.java
Copy file name to clipboardExpand all lines: flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-sqlserver/src/main/java/org/apache/flink/cdc/connectors/sqlserver/source/SqlServerDataSourceOptions.java
+1-25Lines changed: 1 addition & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ public class SqlServerDataSourceOptions {
45
45
.stringType()
46
46
.noDefaultValue()
47
47
.withDescription(
48
-
"Name of the SQL Server database to use when connecting to the SQL Server database server.");
48
+
"Name of the SQL Server user to use when connecting to the SQL Server database server.");
49
49
50
50
publicstaticfinalConfigOption<String> PASSWORD =
51
51
ConfigOptions.key("password")
@@ -131,30 +131,6 @@ public class SqlServerDataSourceOptions {
131
131
.withDescription(
132
132
"Optional timestamp used in case of \"timestamp\" startup mode");
Copy file name to clipboardExpand all lines: flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-sqlserver/src/main/java/org/apache/flink/cdc/connectors/sqlserver/source/SqlServerMetadataAccessor.java
Copy file name to clipboardExpand all lines: flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-sqlserver/src/main/java/org/apache/flink/cdc/connectors/sqlserver/source/SqlServerSchemaDataTypeInference.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -29,8 +29,8 @@ public class SqlServerSchemaDataTypeInference extends DebeziumSchemaDataTypeInfe
29
29
30
30
privatestaticfinallongserialVersionUID = 1L;
31
31
32
-
// SQL Server doesn't have special geometry types like PostgreSQL,
33
-
// so we can use the default implementation from the parent class.
34
-
// If there are SQL Serverspecific types that need special handling,
35
-
// they can be added here by overriding the inferStruct method.
32
+
// SQL Server has database-specific types, but no special handling is currently
33
+
// needed here, so this class uses the default implementation from the parent class.
34
+
// If SQL Server-specific types require special handling in the future,
35
+
// it can be added here by overriding the inferStruct method.
Copy file name to clipboardExpand all lines: flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-sqlserver/src/main/java/org/apache/flink/cdc/connectors/sqlserver/utils/SqlServerSchemaUtils.java
Copy file name to clipboardExpand all lines: flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-sqlserver/src/main/java/org/apache/flink/cdc/connectors/sqlserver/utils/SqlServerTypeUtils.java
Copy file name to clipboardExpand all lines: flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-sqlserver/src/test/java/org/apache/flink/cdc/connectors/sqlserver/factory/SqlServerDataSourceFactoryTest.java
Copy file name to clipboardExpand all lines: flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-sqlserver/src/test/java/org/apache/flink/cdc/connectors/sqlserver/source/SqlServerMetadataAccessorITCase.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,14 @@ public void testListSchemas() {
Copy file name to clipboardExpand all lines: flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-sqlserver/src/test/java/org/apache/flink/cdc/connectors/sqlserver/source/SqlServerOnlineSchemaMigrationITCase.java
Copy file name to clipboardExpand all lines: flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-sqlserver/src/test/java/org/apache/flink/cdc/connectors/sqlserver/source/SqlServerPipelineITCaseTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -336,7 +336,7 @@ private static <T> List<T> fetchResultsExcept(Iterator<T> iter, int size, T side
0 commit comments