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

Optionally distribute Hive writes on partition keys #579

Closed
dain opened this issue Apr 3, 2019 · 1 comment
Closed

Optionally distribute Hive writes on partition keys #579

dain opened this issue Apr 3, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@dain
Copy link
Member

dain commented Apr 3, 2019

Today, when writing Hive tables, Presto arbitrarily distributes the data across the writer nodes. This results in good parallelization for the common case of a query writing a single partition, since each worker will write a separate file for the partition. For queries that need to writer hundreds or thousands of partitions, this behavior causes problems as each worker will end up writing a file to each partition, so there are hundreds (or thousands) of large output buffers and open file streams.

To resolve this issue, we should add a session property that when set changes the InsertLayout and CreateTableLayout in HiveMetadata to declare a partitioning based on the partition keys.

@dain dain added the enhancement New feature or request label Apr 3, 2019
@findepi
Copy link
Member

findepi commented Apr 4, 2019

Duplicates #304

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants