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

Request for PARRALEL option for external table with ARRAY #55

Open
rferraton opened this issue May 6, 2022 · 2 comments
Open

Request for PARRALEL option for external table with ARRAY #55

rferraton opened this issue May 6, 2022 · 2 comments

Comments

@rferraton
Copy link

Currently CTAS using an external table for ARRAY as source is sequential : the source files in the array are read one after another.

It would be great if the select (and may be the insert) could be done in parallel.
A PARRALEL => degree could be use to parameter/limit that.

@vogelsgesang
Copy link
Contributor

Thanks for your requests! Your request actually boils down into two independent missing features in Hyper: parallel CTAS and parallel ARRAY-scanning (more information below, in case you are interested).
We already have both of them on our backlog, but without any committed timeline so far.

Request for PARRALEL option for external table with ARRAY

I agree, reading across multiple files in parallel would be beneficial. We don't currently do so, but it is on our list... We would probably not expose this as an option, though. We would just do it under the hood without any additional hints in the query.

Note that we already do parallelize reading within individual files. A query like

SELECT SUM(x) FROM external('path/to/my/data.parquet');

is already parallelized if your individual files are sufficiently large

CTAS [...] is sequential

this is indeed a separate problem. This is not a problem with the scanning of external files, but rather with the insertion into tables. Hyper's table insertion is currently always single-threaded

@rferraton
Copy link
Author

Parallel insert would be a beneficial feature I think. To simplify thing, may be the use of ARRAY as source with partition in target may help ?

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