-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Can not redirct stderr in chdb.query() #54
Labels
bug
Something isn't working
Comments
Use https://github.com/minrk/wurlitzer can catch it. from wurlitzer import pipes
with pipes() as (out, err):
res = chdb.query("select 1", "csv")
errmsg = err.read() |
Or use pipe_out, pipe_in = os.pipe()
os.dup2(pipe_in, 2) to replace stderr fd temporarily |
It seems the |
Can we close this issue or is it still applicable to 0.11.4? |
Still to be fixed |
Fixed #105 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the unexpected behaviour
In version above 0.10, chdb.query() will print error message in stderr.
But it can not redirct or catch into variable.
How to reproduce
Expected behavior
Error msg catched and stored into err variable
The text was updated successfully, but these errors were encountered: