mgoodnow opened a new pull request, #88:
URL: https://github.com/apache/flink-connector-mongodb/pull/88
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
## Purpose of the change
[FLINK-40242](https://issues.apache.org/jira/browse/FLINK-40242) Support
filtered pagination splits using a supporting index for efficient queries
## Brief change log
- `PAGINATION` split boundaries now use the source filter's equality fields
with an index of those fields followed by `_id: 1`. Without such an index, they
fall back to the `_id` index.
- Partial, collated, hidden and hashed/text/geo indexes are skipped, and so
are indexes with a descending `_id`. Regex, array and document values don't
count as equality.
- The boundary query is sorted in index order and fails instead of looping
if a boundary doesn't advance.
- `MongoSourceBuilder`/`MongoReadOptions` gain `setFilter()` and
`setPartitionRecordSize()`.
- The docs (en/zh) and the `PartitionStrategy` description are updated, and
tests are added to `MongoPaginationSplitterTest`.
## Verifying this change
- Verified over several months of running and currently using live in our
production
- Used daily by BATCH jobs targeting specific tenant data
## Impact and documentation
n/a
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes
Generated-by: CoPilot 1.4.3
--
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]