DBZ-4814 Use schema not catalog in table id
This commit is contained in:
parent
78206deeee
commit
1355067ef0
@ -1441,7 +1441,7 @@ public void shouldNotRefreshSchemaOnUnchangedToastedData() throws Exception {
|
||||
consumer.expects(1);
|
||||
executeAndWait(statement);
|
||||
assertWithTask(task -> {
|
||||
Table tbl = ((PostgresConnectorTask) task).getTaskContext().schema().tableFor(TableId.parse("public.test_table"));
|
||||
Table tbl = ((PostgresConnectorTask) task).getTaskContext().schema().tableFor(TableId.parse("public.test_table", false));
|
||||
assertEquals(Arrays.asList("pk", "text", "not_toast"), tbl.retrieveColumnNames());
|
||||
});
|
||||
|
||||
@ -1477,7 +1477,7 @@ public void shouldRefreshSchemaOnUnchangedToastedDataWhenSchemaChanged() throws
|
||||
consumer.expects(1);
|
||||
executeAndWait(statement);
|
||||
assertWithTask(task -> {
|
||||
Table tbl = ((PostgresConnectorTask) task).getTaskContext().schema().tableFor(TableId.parse("public.test_table"));
|
||||
Table tbl = ((PostgresConnectorTask) task).getTaskContext().schema().tableFor(TableId.parse("public.test_table", false));
|
||||
assertEquals(Arrays.asList("pk", "not_toast"), tbl.retrieveColumnNames());
|
||||
});
|
||||
}
|
||||
@ -1521,7 +1521,7 @@ public void shouldNotPropagateUnchangedToastedData() throws Exception {
|
||||
executeAndWait(statement);
|
||||
consumer.process(record -> {
|
||||
assertWithTask(task -> {
|
||||
Table tbl = ((PostgresConnectorTask) task).getTaskContext().schema().tableFor(TableId.parse("public.test_table"));
|
||||
Table tbl = ((PostgresConnectorTask) task).getTaskContext().schema().tableFor(TableId.parse("public.test_table", false));
|
||||
assertEquals(Arrays.asList("pk", "text", "not_toast", "mandatory_text"), tbl.retrieveColumnNames());
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user