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

Add multipleWritersPerPartitionSupported flag in ConnectorTableLayout + Refactor scale writer #14956

Merged
merged 4 commits into from
Nov 10, 2022
Merged

Add multipleWritersPerPartitionSupported flag in ConnectorTableLayout + Refactor scale writer #14956

merged 4 commits into from
Nov 10, 2022

Conversation

gaurav8297
Copy link
Member

Description

extracted 4 commits from #14718

Non-technical explanation

Release notes

( ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@sopel39
Copy link
Member

sopel39 commented Nov 9, 2022

@arhimondr @findepi ptal if you want

@sopel39 sopel39 changed the title Refactor scale writer Add multipleWritersPerPartitionSupported flag in ConnectorTableLayout + Refactor scale writer Nov 9, 2022
core/trino-spi/pom.xml Outdated Show resolved Hide resolved
This new flag helps the engine to identify
whether writer scaling per partition is allowed.
Previously physicalWrittenBytesSupplier was passed
directly to the LocalExchange constructor, thus
it was hard to map a buffer to its respective writer
physical written bytes. However, with this change we
are passing it directly while operator get its next
buffer.

This refactor will be helpful for scaling partitioned
writes with skewness.
Instead of using SystemPartitioningHandle for
scale writers partitioning, introduce a separate
flag inside PartitioningHandle. This will eventually
help us enable scale writers for any kind of
partitioning like a connector specific partitioning.
this(partitioning, partitionColumns, false);
}

public ConnectorTableLayout(ConnectorPartitioningHandle partitioning, List<String> partitionColumns, boolean multipleWritersPerPartitionSupported)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this method would most likely be used with multipleWritersPerPartitionSupported=true. We could consider switching to static constructor methods in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants