- Newest
- Most votes
- Most comments
This appears to be a limitation related to how Amazon Redshift handles schemas when history mode is enabled for zero-ETL integrations. When history mode is turned on, it affects how certain operations work within the database, including preventing the dropping of tables that originated from the source (they enter a "DroppedSource" state instead).
However, the behavior you're experiencing with non-zero-ETL schemas is not directly addressed in the available documentation. The error message suggests that Redshift may be treating all schemas in a database with zero-ETL integrations differently when history mode is enabled.
To work around this issue without dropping the integration, you could try:
-
Rename the schema instead of dropping it - History mode documentation indicates that RENAME commands can still be used with regular SQL, so you might be able to rename the schema to something else and reuse the name if needed.
-
Turn off history mode temporarily - If feasible in your environment, you could disable history mode for the integration, drop the unwanted schemas, and then re-enable history mode. Note that turning off history mode triggers Amazon Redshift to make a copy of tables with only active records and without the history columns.
-
Contact AWS Support - Since this appears to be an unexpected behavior where non-zero-ETL schemas are being treated as zero-ETL schemas, AWS Support may be able to provide a solution or workaround specific to your situation.
The fact that empty, user-created schemas cannot be dropped when they're not part of the zero-ETL integration suggests this may be a broader restriction or potentially an issue that AWS Support should investigate.
Sources
History mode - Amazon Redshift
answered 9 months ago
Relevant content
asked 3 years ago
asked 8 months ago

Both renaming the schema and changing to Standard Mode before dropping the schema failed