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

cursor doesn't respond/raise exceptions when a query is cancelled in the backend #470

Open
ganeshdogiparthi-db opened this issue Nov 19, 2024 · 0 comments

Comments

@ganeshdogiparthi-db
Copy link

Hi Team,
We have observed that the cursor doesn't respond/raise exceptions when a query is cancelled in the backend it just hangs (keeps on running)
I don't see any solutions online.
Any idea on how to handle this?

 conn= connection(connection_params)
  cursor = conn.cursor()
  c = cursor.execute(query)
  print(c)
  print(c.query_id)
  print("query executed")
  query_id = cursor.query_id
  print(f"In query: {query_id}")
  result = cursor.fetchmany_arrow(100000) 
  if not result:
    raise Exception("No results")
  query_id = cursor.query_id
  print(f"In query: {query_id}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant