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

[core] Introduce ReadBuilder.withShard #3423

Merged
merged 2 commits into from
May 30, 2024
Merged

Conversation

JingsongLi
Copy link
Contributor

Purpose

Introduce ReadBuilder.withShard:

    /** Specify the shard to be read, and allocate sharded files to read records. */
    ReadBuilder withShard(int indexOfThisSubtask, int numberOfParallelSubtasks);

For some OLAP engines, they do not have a central node to uniformly generate splits, which requires each work to generate the splits that need to be read.

Before this feature, if each worker were to retrieve all the splits, there might be a significant cost, so this interface should minimize the reading of metadata as much as possible.

Tests

API and Format

Documentation

Copy link
Contributor

@leaves12138 leaves12138 left a comment

Choose a reason for hiding this comment

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

+1

@leaves12138 leaves12138 merged commit a854d4e into apache:master May 30, 2024
9 checks passed
leaves12138 pushed a commit to leaves12138/incubator-paimon that referenced this pull request May 30, 2024
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

Successfully merging this pull request may close these issues.

2 participants