Skip to content

Commit 1e8d1f7

Browse files
authored
Merge pull request #130 from data-integrations/fix/CDAP-17516-populate-schema
CDAP-17516 Populate the schema name for SQL server since that info is available in the list table call.
2 parents 3194a52 + ce40748 commit 1e8d1f7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sqlserver-delta-plugins/src/main/java/io/cdap/delta/sqlserver/SqlServerTableRegistry.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ public TableList listTables() throws IOException {
8181
if (!tableNames.contains(tableName)) {
8282
continue;
8383
}
84+
String schemaName = tableResults.getString("TABLE_SCHEM");
8485
// ignore the total number of columns for listing tables
85-
tables.add(new TableSummary(config.getDatabase(), tableName, 0, null));
86+
tables.add(new TableSummary(config.getDatabase(), tableName, 0, schemaName));
8687
}
8788
}
8889
return new TableList(tables);

0 commit comments

Comments
 (0)