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

Fix missing ORDER BY statement during first incremental sync #209

Merged
merged 1 commit into from
Mar 29, 2023
Merged
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