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

Any Query hangs forever on Postgresql in AWS RDS Aurora #549

Open
sduc opened this issue Nov 1, 2023 · 0 comments
Open

Any Query hangs forever on Postgresql in AWS RDS Aurora #549

sduc opened this issue Nov 1, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@sduc
Copy link

sduc commented Nov 1, 2023

What language are you using?

Python

What version are you using?

0.3.2

What database are you using?

PostgreSQL (15.3) on AWS RDS Aurora Standard.

What dataframe are you using?

Arrow (but same happens with pandas)

Can you describe your bug?

I'm doing the following simple query but the same happens for any other queries I tried:

connection_string = f"postgresql://{uriEncodedUser}:{uriEncodedPassword}@{host}:5432/main"
cx.read_sql(connection_string, "SELECT 1", return_type="arrow2")

The execution hangs forever and never completes.

When enabling debug mode with:

import os
os.environ["RUST_LOG"] = "connectorx=debug,connectorx_python=debug"

This is what I'm seeing before it hangs

[2023-11-01T11:05:09Z DEBUG connectorx::get_arrow2] Protocol: binary
[2023-11-01T11:05:11Z DEBUG connectorx::dispatcher] Run dispatcher
[2023-11-01T11:05:11Z DEBUG connectorx::dispatcher] Prepare
[2023-11-01T11:05:11Z DEBUG connectorx::dispatcher] Fetching metadata
[2023-11-01T11:05:11Z DEBUG connectorx::dispatcher] Do not need counts in advance
[2023-11-01T11:05:11Z DEBUG connectorx::dispatcher] Allocate destination memory: 0x1
[2023-11-01T11:05:11Z DEBUG connectorx::dispatcher] Create destination partition
[2023-11-01T11:05:11Z DEBUG connectorx::dispatcher] Start writing
[2023-11-01T11:05:11Z DEBUG connectorx::dispatcher] Finalize partition 0
[2023-11-01T11:05:11Z DEBUG connectorx::dispatcher] Partition 0 finished

What are the steps to reproduce the behavior?

Database setup if the error only happens on specific data or data type

The dabase in question is AWS RDS Aurora Standard Postgresql.

Note: I've tried with a regular postgres on my local machine and I do not have this issue.

Example query / code

any query will do the trick.

What is the error?

No error. The code just hangs.

@sduc sduc added the bug Something isn't working label Nov 1, 2023
@sduc sduc changed the title Query hangs forever Any Query hangs forever on Postgresql in AWS RDS Aurora Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant