Join GitHub today
Fix DELETE statement for Redshift Dialect #35
Redshift's delete statement varies slightly from Postgresql's. See here for documentation.
Basic delete statements have the same syntax.
For instance, the following is valid SQL in both dialects:
However, while the following is a valid statement in Postgresql:
It needs to be written for Redshift as:
SqlAlchemy should be able to build this resultant query with the following Python snippet: