I am trying to use op.rename_table with old_table_name, new_table_name and schema, but it is creating an incorrect SQL statement.
For example,
For the method call, op.rename_table('table_a', 'table_b', schema='tables')
Expected SQL statement to be executed:-
ALTER TABLE tables.table_a RENAME TO table_b
Actual SQL statement it is executing currently:-
ALTER TABLE tables.table_a RENAME TO tables.table_b