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

Does presto-client-node stream the resultset ? #17

Open
KalaiselvanMahendran opened this issue Dec 29, 2017 · 1 comment
Open

Does presto-client-node stream the resultset ? #17

KalaiselvanMahendran opened this issue Dec 29, 2017 · 1 comment

Comments

@KalaiselvanMahendran
Copy link

KalaiselvanMahendran commented Dec 29, 2017

No description provided.

@KalaiselvanMahendran KalaiselvanMahendran changed the title Does presto-client-node stream result by object or It gives array of objects ? Does presto-client-node stream results ? Dec 29, 2017
@KalaiselvanMahendran KalaiselvanMahendran changed the title Does presto-client-node stream results ? Does presto-client-node stream the resultset ? Dec 29, 2017
@serakfalcon
Copy link

@tagomoris I had the same question, to answer for whoever is interested, no, it does not, in fact the script will poll presto for more data. The polling mechanism is quite simple and is the same frequency before and after the data is ready to download. I have forked the code here to this package: https://www.npmjs.com/package/presto-stream-client which only uses the polling frequency prior to presto having the results ready, and then afterwards gets data from presto as a readstream. I'm happy to have the code merged in however I also made some changes to use es6 among other things so I wasn't sure if it would be a good fit to merge.

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

2 participants