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

Enforce ordering by replication key during full refresh #202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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