mirror of
https://github.com/floci-io/floci.git
synced 2026-11-30 00:45:17 -05:00
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:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user