Júlia Lemes
12/05/2025, 4:45 PMkapa.ai
12/05/2025, 4:46 PMDROP TABLE, CREATE TABLE AS, ALTER TABLE RENAME) is not specified in the knowledge sources. ### About Redshift “drop cascade” option The documentation you provided does not mention: - The Redshift destination’s “drop cascade” option. - Whether Airbyte issues DROP TABLE ... CASCADE vs DROP TABLE ... RESTRICT or similar. - Any Redshift‑specific SQL examples. So I cannot reliably state the exact commands used in Redshift or precisely how the “drop cascade” flag changes them based on these docs. --- Summary: Behind the scenes, Full Refresh – Overwrite for a Redshift destination will (conceptually) load all data into a temp table, then drop the existing final table and replace it with the new one, so the destination table always reflects the full current dataset from the source. [[Full refresh overwrite](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/full-refresh-overwrite)] The knowledge sources do not provide the exact Redshift SQL or how the “drop cascade” option is applied.Júlia Lemes
12/05/2025, 4:49 PMkapa.ai
12/05/2025, 4:49 PMkapa.ai
12/05/2025, 4:50 PMfinal-table-tmp, then dropping the old final table and renaming the tmp into place. [[Full refresh overwrite](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/full-refresh-overwrite)] - When a destination needs to recreate tables and there are dependent objects (like views) on those tables, the connector may need to run DROP ... CASCADE. In the Postgres destination docs, Airbyte warns that enabling “Drop tables with CASCADE” will cause dependent objects to be dropped as well, and you must be able to recreate them. [[Postgres destination](https://docs.airbyte.com/integrations/destinations/postgres#creating-dependent-objects)] Given this: - In Postgres, if “Drop tables with CASCADE” is enabled and a table is recreated, dependent views are dropped. [[Postgres destination](https://docs.airbyte.com/integrations/destinations/postgres#creating-dependent-objects)] - The Redshift behavior is not documented in the provided sources, but if the Redshift connector behaves analogously (i.e., uses DROP TABLE ... CASCADE when that option is enabled), then materialized views depending on those tables would also be dropped. Because there is no explicit Redshift documentation in the sources, I cannot confirm this as a documented fact for Redshift; I can only say that: - Airbyte’s pattern with “drop cascade” in Postgres is to drop dependent objects. - If Redshift’s option works the same way, your materialized views would be dropped whenever the underlying table is dropped and recreated. If preserving those materialized views is important, the Postgres docs’ guidance (use dbt or another tool to recreate dependent objects automatically after sync) is likely applicable in spirit, even though it’s not documented specifically for Redshift. [[Postgres destination](https://docs.airbyte.com/integrations/destinations/postgres#creating-dependent-objects)]