refactor(redshift): bind candidate MskViewBinding in createLocked (#9326)

MskStreamingViews.createLocked now binds the candidate MskViewBinding it already
built for the IAM check, instead of constructing the same binding a second time.
This commit is contained in:
Vũ Thế Huy authored and GitHub committed 2026-11-24 00:35:13 -04:00
1 parent b035e1d37b
commit c997a3c2ba
1 file changed
+1 -2
@@ -180,8 +180,7 @@ public class MskStreamingViews {
+ "kafka_headers pg_catalog.super, refresh_time timestamp); "
+ "CREATE TABLE " + table(viewSchema, statement.viewName()) + " AS " + statement.select()
+ " WITH NO DATA");
registry.bind(new MskViewBinding(session.accountId(), session.clusterKey(), session.databaseName(),
viewSchema, statement.viewName(), schema.schemaName(), topicName, statement.select(), Map.of()));
registry.bind(candidate);
}
}