JingsongLi opened a new pull request, #3423:
URL: https://github.com/apache/paimon/pull/3423
<!-- Please specify the module before the PR name: [core] ... or [flink] ...
-->
### Purpose
<!-- Linking this pull request to the issue -->
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.
<!-- What is the purpose of the change -->
### Tests
<!-- List UT and IT cases to verify this change -->
### API and Format
<!-- Does this change affect API or storage format -->
### Documentation
<!-- Does this change introduce a new feature -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]