Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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: