-
Notifications
You must be signed in to change notification settings - Fork 120
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
streaming rows #32
Comments
Just want to note that I'm going to try implementing this myself in my own fork. |
ah, it's a little difficult for me... so I guess I'll wait and see what your plans are first |
ah, I got streaming blocks to compile, and will test tomorrow. |
Hello Right now I don't have any plans to expose an API for streaming rows. Current API allows streaming output but it can be inconvenient and little inefficient, so it will be great if you will be able to suggest a better solution. |
What’s the recommended way to stream with the current api? I think I missed it, it wasn’t clear to me that |
Below are links to the api I hacked in (I hope I didn't duplicate work...), as well as a poc to show how it's used. https://github.com/hwchen/clickhouse-stream Let me know what you think about this. |
About streaming with the current API: About your API: And about your comment at |
Thanks for looking over my code! Let me know if you'd be ok having an api like this in the driver, I'm happy to work on it more. For One downside of my current stream api is that it appears to not end the stream if there's an error like "table does not exist". But I'm not sure how to properly propagate this in the stream before it reaches the user. I've updated my proof of concept |
Can you send a pull request with your changes as is? I'm going to make a few small modifications to your code. It will save me a lot of time. |
pull request made, thanks! |
One additional thought on api: This clickhouse js driver pushes responsibility for dealing with each type of stream even ( Don't know if this makes sense or is consistent with how you want this driver to work, but wanted to put it out there. |
I've completed and published new stream API |
Thanks! It was very informative to see how you handled the API, I learned something. |
One quick question: I don't know if you know this, but sometimes clickhouse will stream multiple blocks, but sometimes it gathers the entire output into one block, even if it's very large. It doesn't seem entirely consistent to me, so I was wondering if you knew when clickhouse would stream and when it would gather. |
makes sense, thanks! |
Hello again!
I was wondering if you plan to expose an api for streaming rows. I see that you have
Fold
currently, I'm not sure that will work for my current purposes (streaming output rows through to the user). If it could work, or I missed something in the api, let me know!The text was updated successfully, but these errors were encountered: