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

dain opened this Issue Apr 3, 2019 · 1 comment


2 participants
Copy link

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 label Apr 3, 2019


This comment has been minimized.

Copy link

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
You can’t perform that action at this time.