-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Bump psycopg2 to psycopg3 for all Postgres components (#4303)
* Makefile: Formatting Signed-off-by: Job Almekinders <[email protected]> * Makefile: Exclude Snowflake tests for postgres offline store tests Signed-off-by: Job Almekinders <[email protected]> * Bootstrap: Use conninfo Signed-off-by: Job Almekinders <[email protected]> * Tests: Make connection string compatible with psycopg3 Signed-off-by: Job Almekinders <[email protected]> * Tests: Test connection type pool and singleton Signed-off-by: Job Almekinders <[email protected]> * Global: Replace conn.set_session() calls to be psycopg3 compatible Set connection read only Signed-off-by: Job Almekinders <[email protected]> * Offline: Use psycopg3 Signed-off-by: Job Almekinders <[email protected]> * Online: Use psycopg3 Signed-off-by: Job Almekinders <[email protected]> * Online: Restructure online_write_batch Addition Signed-off-by: Job Almekinders <[email protected]> * Online: Use correct placeholder Signed-off-by: Job Almekinders <[email protected]> * Online: Handle bytes properly in online_read() Signed-off-by: Job Almekinders <[email protected]> * Online: Whitespace Signed-off-by: Job Almekinders <[email protected]> * Online: Open ConnectionPool Signed-off-by: Job Almekinders <[email protected]> * Online: Add typehint Signed-off-by: Job Almekinders <[email protected]> * Utils: Use psycopg3 Use new ConnectionPool Pass kwargs as named argument Use executemany over execute_values Remove not-required open argument in psycopg.connect Improve Use SpooledTemporaryFile Use max_size and add docstring Properly write with StringIO Utils: Use SpooledTemporaryFile over StringIO object Add replace Fix df_to_postgres_table Remove import Utils Signed-off-by: Job Almekinders <[email protected]> * Lint: Raise exceptions if cursor returned no columns or rows Add log statement Lint: Fix _to_arrow_internal Lint: Fix _get_entity_df_event_timestamp_range Update exception Use ZeroColumnQueryResult Signed-off-by: Job Almekinders <[email protected]> * Add comment on +psycopg string Signed-off-by: Job Almekinders <[email protected]> * Docs: Remove mention of psycopg2 Signed-off-by: Job Almekinders <[email protected]> * Lint: Fix Signed-off-by: Job Almekinders <[email protected]> * Default to postgresql+psycopg and log warning Update warning Fix Format warning Add typehints Use better variable name Signed-off-by: Job Almekinders <[email protected]> * Solve merge conflicts Signed-off-by: Job Almekinders <[email protected]> --------- Signed-off-by: Job Almekinders <[email protected]>
- Loading branch information
1 parent
43e198f
commit 9451d9c
Showing
18 changed files
with
925 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.