Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
fix missing ORDER BY statement during first incremental sync (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsax authored Mar 29, 2023
1 parent a97d7d8 commit b418f2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tap_postgres/sync_strategies/incremental.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,6 @@ def _get_select_sql(params):
select_sql = f"""
SELECT {','.join(escaped_columns)}
FROM {post_db.fully_qualified_table_name(schema_name, stream['table_name'])}
ORDER BY {post_db.prepare_columns_sql(replication_key)} ASC
"""
return select_sql

0 comments on commit b418f2e

Please sign in to comment.