Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove DDL automatically issued by Ibis for Postgres connections #1067

Merged
merged 3 commits into from
Dec 6, 2023

Conversation

nehanene15
Copy link
Collaborator

Closes #1035

  • Overwrites PG do_connect() method to remove CREATE FUNCTION DDL automatically issued by Ibis (here)

@nehanene15 nehanene15 requested a review from a team as a code owner December 5, 2023 20:20
@nehanene15
Copy link
Collaborator Author

nehanene15 commented Dec 5, 2023

/gcbrun

Copy link
Contributor

@nj1973 nj1973 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add an integration test to run test_postgres.py against a read replica? Not for this PR, thinking if we need a new issue for that or if it is overkill?

Copy link
Contributor

@nj1973 nj1973 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks much better to me. Because the code was creating the functions on every execute we would generate a lot of warnings if we went down the isolation_level route I was investigating.

Aside from my comment about tests your changes LGTM.

@sundar-mudupalli-work
Copy link
Contributor

sundar-mudupalli-work commented Dec 6, 2023 via email

@nehanene15
Copy link
Collaborator Author

Should we add an integration test to run test_postgres.py against a read replica? Not for this PR, thinking if we need a new issue for that or if it is overkill?

I don't think we need a test for a read replica since the Ibis upgrade get's rid of the DDL in v6.0 anyways. But if another similar issue comes up, we can consider it. Thanks for the review!

@nehanene15 nehanene15 merged commit c2b660b into develop Dec 6, 2023
5 checks passed
@nehanene15 nehanene15 deleted the issue1035-pg-ddl branch December 6, 2023 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to create first/last aggregates: cannot execute CREATE FUNCTION in a read-only transaction
3 participants