You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "SteNicholas (via GitHub)" <gi...@apache.org> on 2026/10/20 07:58:34 UTC
[PR] fix(global-index): exclude deleted rows from full-text ranking [paimon-cpp]
SteNicholas opened a new pull request, #448:
URL: https://github.com/apache/paimon-cpp/pull/448
<!-- PR titles must follow Conventional Commits: <type>(<optional-scope>): <description> -->
### Purpose
<!-- Linking this pull request to the issue -->
Linked issue: close #403
<!-- What is the purpose of the change -->
Deletion vectors were applied only when rows were read, so a full-text search on a data-evolution
table with `deletion-vectors.enabled` still ranked deleted rows. They could take every top-k slot,
and the read then dropped them: a search with `limit` k returned fewer than k rows, or none, even
when enough live rows matched.
The fix aligns with Java `GlobalIndexLiveRowFilter` and `DataEvolutionFullTextRead#includeRowIds`:
the rows live in the snapshot the index is read from are computed once and intersected into the
rows each index shard ranks, while BM25 statistics still come from the whole index.
- **`GlobalIndexLiveRowFilter::LiveRows`**: as Java `GlobalIndexLiveRowFilter#liveRows` does, reads
the data files of the scanned partitions in the pinned snapshot with `ScanMode::ALL`, unions
their row id ranges, then subtracts the rows deleted by their deletion vectors. Every range is
added before any deletion vector is subtracted, so a deleted row is not added back by another
file covering the same rows, and only one deletion vector is held at a time. It returns nullopt,
so every row counts as live, when deletion vectors or row tracking are disabled. A deletion
vector that cannot be read is reported with its data file, snapshot and table.
- **`DataFileMeta::NonNullRowIdRange`**: computes a file's row id range as Java
`DataFileMeta#nonNullRowIdRange` does, and rejects a null or negative first row id, a file with
no rows, or a range that would pass `INT64_MAX`, instead of overflowing. As in Java,
`DataEvolutionSplitGenerator` takes its ranges from it too, which covers the split planning that
live rows are read through.
- **`LiveRowGlobalIndexReader`**: wraps each index shard. A full-text search ranks only the live
rows of the shard, intersected with the include row ids if given, and is passed on unchanged
when the whole shard is live. Predicate and vector searches are delegated unchanged.
- **`LiveRowGlobalIndexReader::CreateUnion`**: loads live rows on the visiting thread before the
search fans out to the shards, so a load that reads manifests on the shared executor never waits
for it from one of its own threads. A search without a positive `limit`, or whose include row
ids miss the rows every shard ranks, neither reads live rows nor fails on them.
- **`GlobalIndexScanImpl`**: for tables with deletion vectors, wraps the shard readers of every
index and loads live rows at most once per scan, on its first full-text search that ranks rows,
pinned to the snapshot the scan reads the index from. A failed load is retried on the next
search.
- **`FileStoreScan::WithPartitionFilter`**: restricts the live-row scan to the partitions the
global index scan reads.
Vector search still ranks deleted rows, as before; Java filters it too, and the same live-row
helper can be reused for it and for the table-level read in a follow-up.
### Tests
<!-- List UT and IT cases to verify this change -->
UT:
- `src/paimon/core/global_index/live_row_global_index_reader_test.cpp`:
`TestSearchUnchangedWhenEveryRowIsLive`, `TestSearchOnlyLiveRowsOfShard` (including a shard
ending at `INT64_MAX`), `TestIncludeRowIdsClippedToShard`,
`TestCreateUnionLoadsLiveRowsBeforeSearchingShards` (live rows loaded on the visiting thread with
a one-thread executor), `TestCreateUnionRanksLiveRowsOfSearchRanges` (overlapping shards),
`TestCacheLiveRows` (cached, retried after a failure, and nullopt when every row is live),
`TestLiveRowsErrorOnlyFailsSearchesThatRankRows` (a failed load fails a search that ranks rows,
but not one without a positive `limit` or whose include row ids miss every searched shard) and
`TestOtherVisitsDoNotReadLiveRows`.
- `src/paimon/core/io/data_file_meta_test.cpp`: `TestNonNullRowIdRange` (a range ending at
`INT64_MAX`, one past it, no rows, a negative and a null first row id).
- `src/paimon/core/table/source/split_generator_test.cpp`: `TestDataEvolutionRowIdRangeAtInt64Max`.
IT:
- `test/inte/data_evolution_table_test.cpp`: `DataEvolutionDvTableTest.TestGlobalIndexLiveRows`
(live rows with and without a partition filter, in the snapshot before the deletion, and the
error when a deletion vector cannot be read).
- `test/inte/global_index_test.cpp`: `TestLuceneSearchSkipsRowsDeletedByDeletionVectors` and
`TestFullTextSearchSkipsRowsDeletedByDeletionVectors` share `CheckSearchSkipsDeletedRows`: across
two shards, live rows keep the scores they had before the deletion, every `limit` returns the
top-k live rows, include row ids are intersected with the live rows, a scan created before the
deletion still ranks every row, and reading the matched rows returns all of them.
### API and Format
<!-- Does this change affect API in include dir or storage format or protocol -->
No change in `include/`. For tables with deletion vectors and row tracking, full-text searches
through readers created by `GlobalIndexScan` rank only live rows. Data-evolution scans now reject a
data file whose row id range is invalid instead of overflowing. No storage format change.
### Documentation
<!-- Does this change introduce a new feature -->
No new feature. `docs/source/user_guide/global_index.rst` describes how deleted rows are excluded
from full-text ranking and shows passing one snapshot id to both the index scan and the data scan.
### Generative AI tooling
Generated-by: Claude Code 2.1.303 (Claude Opus 5.5)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(global-index): exclude deleted rows from full-text ranking [paimon-cpp]
Posted by "SteNicholas (via GitHub)" <gi...@apache.org>.
SteNicholas commented on PR #448:
URL: https://github.com/apache/paimon-cpp/pull/448#issuecomment-6334082800
Thanks for the review! Yes, I plan to cover vector search in a follow-up and opened #454 to track it. `VectorSearch` already carries a `pre_filter` over global row ids, so `LiveRowGlobalIndexReader` can intersect it with the shard's live rows via `ReplacePreFilter`, reusing `GlobalIndexLiveRowFilter::LiveRows` from this PR, in line with Java.
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(global-index): exclude deleted rows from full-text ranking [paimon-cpp]
Posted by "zjw1111 (via GitHub)" <gi...@apache.org>.
zjw1111 commented on PR #448:
URL: https://github.com/apache/paimon-cpp/pull/448#issuecomment-6332309008
Thanks for fixing the full-text case. As noted in the description, vector search on data-evolution tables with deletion vectors enabled still has the same top-k issue: deleted rows can occupy result slots and then be dropped during the data read. Do you have plans to address this in a follow-up? If not, we'll schedule support on our side.
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(global-index): exclude deleted rows from full-text ranking [paimon-cpp]
Posted by "zjw1111 (via GitHub)" <gi...@apache.org>.
zjw1111 commented on code in PR #448:
URL: https://github.com/apache/paimon-cpp/pull/448#discussion_r4344385916
##########
src/paimon/core/global_index/live_row_global_index_reader.cpp:
##########
@@ -0,0 +1,232 @@
+/*
+ * 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.
+ */
+
+#include "paimon/core/global_index/live_row_global_index_reader.h"
+
+#include <algorithm>
+#include <cassert>
+#include <mutex>
+#include <utility>
+
+#include "paimon/common/global_index/union_global_index_reader.h"
+
+namespace paimon {
+namespace {
+/// Returns whether `full_text_search` may rank a row of `range`: it has no include row ids, or one
+/// of them is in `range`.
+bool MayRankRowsOf(const FullTextSearch& full_text_search, const Range& range) {
+ if (!full_text_search.include_row_ids) {
+ return true;
+ }
+ const RoaringBitmap64& include_row_ids = full_text_search.include_row_ids.value();
+ auto first = include_row_ids.EqualOrLarger(range.from);
+ return first != include_row_ids.End() && *first <= range.to;
+}
+
+/// A union of LiveRowGlobalIndexReaders that loads the live rows on the visiting thread before a
+/// full-text search fans out to them.
+class LiveRowUnionGlobalIndexReader : public UnionGlobalIndexReader {
+ public:
+ /// @param ranked_ranges The global row ids the shards rank in a full-text search, leaving out
+ /// the shards that rank none.
+ LiveRowUnionGlobalIndexReader(std::vector<std::shared_ptr<GlobalIndexReader>>&& readers,
+ std::vector<Range>&& row_ranges,
+ std::vector<std::optional<Range>>&& search_ranges,
+ std::vector<Range>&& ranked_ranges,
+ const std::shared_ptr<Executor>& executor,
+ LiveRowGlobalIndexReader::LiveRowsSupplier live_rows_supplier)
+ : UnionGlobalIndexReader(std::move(readers), std::move(row_ranges),
+ std::move(search_ranges), executor),
+ ranked_ranges_(std::move(ranked_ranges)),
+ live_rows_supplier_(std::move(live_rows_supplier)) {}
+
+ Result<std::shared_ptr<ScoredGlobalIndexResult>> VisitFullTextSearch(
+ const std::shared_ptr<FullTextSearch>& full_text_search) override {
+ // Only a shard search needs live rows: the union rejects a search without a positive limit
+ // before searching any shard, and skips the shards whose rows the include row ids miss.
+ if (full_text_search && full_text_search->limit > 0 &&
+ std::any_of(ranked_ranges_.begin(), ranked_ranges_.end(), [&](const Range& range) {
+ return MayRankRowsOf(*full_text_search, range);
+ })) {
+ PAIMON_RETURN_NOT_OK(live_rows_supplier_());
+ }
+ return UnionGlobalIndexReader::VisitFullTextSearch(full_text_search);
+ }
+
+ private:
+ std::vector<Range> ranked_ranges_;
+ LiveRowGlobalIndexReader::LiveRowsSupplier live_rows_supplier_;
+};
+} // namespace
+
+LiveRowGlobalIndexReader::LiveRowsSupplier LiveRowGlobalIndexReader::CacheLiveRows(
+ std::function<Result<std::optional<RoaringBitmap64>>()> load) {
+ struct State {
+ std::mutex mutex;
+ bool loaded = false;
+ std::shared_ptr<const RoaringBitmap64> live_rows;
+ };
+ auto state = std::make_shared<State>();
+ return [state, load = std::move(load)]() -> Result<std::shared_ptr<const RoaringBitmap64>> {
+ std::lock_guard<std::mutex> lock(state->mutex);
+ if (!state->loaded) {
+ PAIMON_ASSIGN_OR_RAISE(std::optional<RoaringBitmap64> live_rows, load());
+ if (live_rows) {
+ state->live_rows =
+ std::make_shared<const RoaringBitmap64>(std::move(live_rows).value());
+ }
+ state->loaded = true;
+ }
+ return state->live_rows;
+ };
+}
+
+std::shared_ptr<GlobalIndexReader> LiveRowGlobalIndexReader::CreateUnion(
+ std::vector<std::shared_ptr<GlobalIndexReader>>&& shard_readers,
+ std::vector<Range>&& shard_ranges, std::vector<std::optional<Range>>&& search_ranges,
+ const std::shared_ptr<Executor>& executor, const LiveRowsSupplier& live_rows_supplier) {
+ assert(shard_readers.size() == shard_ranges.size());
+ std::vector<std::shared_ptr<GlobalIndexReader>> readers;
+ std::vector<Range> ranked_ranges;
+ readers.reserve(shard_readers.size());
+ ranked_ranges.reserve(shard_readers.size());
+ for (size_t i = 0; i < shard_readers.size(); i++) {
+ readers.push_back(std::make_shared<LiveRowGlobalIndexReader>(
+ std::move(shard_readers[i]), shard_ranges[i], live_rows_supplier));
+ if (search_ranges.empty()) {
+ ranked_ranges.push_back(shard_ranges[i]);
+ } else if (search_ranges[i]) {
+ ranked_ranges.push_back(search_ranges[i].value());
+ }
+ }
+ return std::make_shared<LiveRowUnionGlobalIndexReader>(
+ std::move(readers), std::move(shard_ranges), std::move(search_ranges),
+ std::move(ranked_ranges), executor, live_rows_supplier);
+}
+
+LiveRowGlobalIndexReader::LiveRowGlobalIndexReader(std::shared_ptr<GlobalIndexReader>&& wrapped,
+ const Range& shard_range,
+ LiveRowsSupplier live_rows_supplier)
+ : wrapped_(std::move(wrapped)),
+ shard_range_(shard_range),
+ live_rows_supplier_(std::move(live_rows_supplier)) {}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitIsNotNull() {
+ return wrapped_->VisitIsNotNull();
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitIsNull() {
+ return wrapped_->VisitIsNull();
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitEqual(
+ const Literal& literal) {
+ return wrapped_->VisitEqual(literal);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitNotEqual(
+ const Literal& literal) {
+ return wrapped_->VisitNotEqual(literal);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitLessThan(
+ const Literal& literal) {
+ return wrapped_->VisitLessThan(literal);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitLessOrEqual(
+ const Literal& literal) {
+ return wrapped_->VisitLessOrEqual(literal);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitGreaterThan(
+ const Literal& literal) {
+ return wrapped_->VisitGreaterThan(literal);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitGreaterOrEqual(
+ const Literal& literal) {
+ return wrapped_->VisitGreaterOrEqual(literal);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitIn(
+ const std::vector<Literal>& literals) {
+ return wrapped_->VisitIn(literals);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitNotIn(
+ const std::vector<Literal>& literals) {
+ return wrapped_->VisitNotIn(literals);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitStartsWith(
+ const Literal& prefix) {
+ return wrapped_->VisitStartsWith(prefix);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitEndsWith(
+ const Literal& suffix) {
+ return wrapped_->VisitEndsWith(suffix);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitContains(
+ const Literal& literal) {
+ return wrapped_->VisitContains(literal);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitLike(
+ const Literal& literal) {
+ return wrapped_->VisitLike(literal);
+}
+
+Result<std::shared_ptr<ScoredGlobalIndexResult>> LiveRowGlobalIndexReader::VisitVectorSearch(
+ const std::shared_ptr<VectorSearch>& vector_search) {
+ return wrapped_->VisitVectorSearch(vector_search);
Review Comment:
Thanks for fixing the full-text case. As noted in the description, vector search on data-evolution tables with deletion vectors enabled still has the same top-k issue: deleted rows can occupy result slots and then be dropped during the data read. Do you have plans to address this in a follow-up? If not, we'll schedule support on our side.
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(global-index): exclude deleted rows from full-text ranking [paimon-cpp]
Posted by "zjw1111 (via GitHub)" <gi...@apache.org>.
zjw1111 commented on code in PR #448:
URL: https://github.com/apache/paimon-cpp/pull/448#discussion_r4344385916
##########
src/paimon/core/global_index/live_row_global_index_reader.cpp:
##########
@@ -0,0 +1,232 @@
+/*
+ * 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.
+ */
+
+#include "paimon/core/global_index/live_row_global_index_reader.h"
+
+#include <algorithm>
+#include <cassert>
+#include <mutex>
+#include <utility>
+
+#include "paimon/common/global_index/union_global_index_reader.h"
+
+namespace paimon {
+namespace {
+/// Returns whether `full_text_search` may rank a row of `range`: it has no include row ids, or one
+/// of them is in `range`.
+bool MayRankRowsOf(const FullTextSearch& full_text_search, const Range& range) {
+ if (!full_text_search.include_row_ids) {
+ return true;
+ }
+ const RoaringBitmap64& include_row_ids = full_text_search.include_row_ids.value();
+ auto first = include_row_ids.EqualOrLarger(range.from);
+ return first != include_row_ids.End() && *first <= range.to;
+}
+
+/// A union of LiveRowGlobalIndexReaders that loads the live rows on the visiting thread before a
+/// full-text search fans out to them.
+class LiveRowUnionGlobalIndexReader : public UnionGlobalIndexReader {
+ public:
+ /// @param ranked_ranges The global row ids the shards rank in a full-text search, leaving out
+ /// the shards that rank none.
+ LiveRowUnionGlobalIndexReader(std::vector<std::shared_ptr<GlobalIndexReader>>&& readers,
+ std::vector<Range>&& row_ranges,
+ std::vector<std::optional<Range>>&& search_ranges,
+ std::vector<Range>&& ranked_ranges,
+ const std::shared_ptr<Executor>& executor,
+ LiveRowGlobalIndexReader::LiveRowsSupplier live_rows_supplier)
+ : UnionGlobalIndexReader(std::move(readers), std::move(row_ranges),
+ std::move(search_ranges), executor),
+ ranked_ranges_(std::move(ranked_ranges)),
+ live_rows_supplier_(std::move(live_rows_supplier)) {}
+
+ Result<std::shared_ptr<ScoredGlobalIndexResult>> VisitFullTextSearch(
+ const std::shared_ptr<FullTextSearch>& full_text_search) override {
+ // Only a shard search needs live rows: the union rejects a search without a positive limit
+ // before searching any shard, and skips the shards whose rows the include row ids miss.
+ if (full_text_search && full_text_search->limit > 0 &&
+ std::any_of(ranked_ranges_.begin(), ranked_ranges_.end(), [&](const Range& range) {
+ return MayRankRowsOf(*full_text_search, range);
+ })) {
+ PAIMON_RETURN_NOT_OK(live_rows_supplier_());
+ }
+ return UnionGlobalIndexReader::VisitFullTextSearch(full_text_search);
+ }
+
+ private:
+ std::vector<Range> ranked_ranges_;
+ LiveRowGlobalIndexReader::LiveRowsSupplier live_rows_supplier_;
+};
+} // namespace
+
+LiveRowGlobalIndexReader::LiveRowsSupplier LiveRowGlobalIndexReader::CacheLiveRows(
+ std::function<Result<std::optional<RoaringBitmap64>>()> load) {
+ struct State {
+ std::mutex mutex;
+ bool loaded = false;
+ std::shared_ptr<const RoaringBitmap64> live_rows;
+ };
+ auto state = std::make_shared<State>();
+ return [state, load = std::move(load)]() -> Result<std::shared_ptr<const RoaringBitmap64>> {
+ std::lock_guard<std::mutex> lock(state->mutex);
+ if (!state->loaded) {
+ PAIMON_ASSIGN_OR_RAISE(std::optional<RoaringBitmap64> live_rows, load());
+ if (live_rows) {
+ state->live_rows =
+ std::make_shared<const RoaringBitmap64>(std::move(live_rows).value());
+ }
+ state->loaded = true;
+ }
+ return state->live_rows;
+ };
+}
+
+std::shared_ptr<GlobalIndexReader> LiveRowGlobalIndexReader::CreateUnion(
+ std::vector<std::shared_ptr<GlobalIndexReader>>&& shard_readers,
+ std::vector<Range>&& shard_ranges, std::vector<std::optional<Range>>&& search_ranges,
+ const std::shared_ptr<Executor>& executor, const LiveRowsSupplier& live_rows_supplier) {
+ assert(shard_readers.size() == shard_ranges.size());
+ std::vector<std::shared_ptr<GlobalIndexReader>> readers;
+ std::vector<Range> ranked_ranges;
+ readers.reserve(shard_readers.size());
+ ranked_ranges.reserve(shard_readers.size());
+ for (size_t i = 0; i < shard_readers.size(); i++) {
+ readers.push_back(std::make_shared<LiveRowGlobalIndexReader>(
+ std::move(shard_readers[i]), shard_ranges[i], live_rows_supplier));
+ if (search_ranges.empty()) {
+ ranked_ranges.push_back(shard_ranges[i]);
+ } else if (search_ranges[i]) {
+ ranked_ranges.push_back(search_ranges[i].value());
+ }
+ }
+ return std::make_shared<LiveRowUnionGlobalIndexReader>(
+ std::move(readers), std::move(shard_ranges), std::move(search_ranges),
+ std::move(ranked_ranges), executor, live_rows_supplier);
+}
+
+LiveRowGlobalIndexReader::LiveRowGlobalIndexReader(std::shared_ptr<GlobalIndexReader>&& wrapped,
+ const Range& shard_range,
+ LiveRowsSupplier live_rows_supplier)
+ : wrapped_(std::move(wrapped)),
+ shard_range_(shard_range),
+ live_rows_supplier_(std::move(live_rows_supplier)) {}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitIsNotNull() {
+ return wrapped_->VisitIsNotNull();
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitIsNull() {
+ return wrapped_->VisitIsNull();
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitEqual(
+ const Literal& literal) {
+ return wrapped_->VisitEqual(literal);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitNotEqual(
+ const Literal& literal) {
+ return wrapped_->VisitNotEqual(literal);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitLessThan(
+ const Literal& literal) {
+ return wrapped_->VisitLessThan(literal);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitLessOrEqual(
+ const Literal& literal) {
+ return wrapped_->VisitLessOrEqual(literal);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitGreaterThan(
+ const Literal& literal) {
+ return wrapped_->VisitGreaterThan(literal);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitGreaterOrEqual(
+ const Literal& literal) {
+ return wrapped_->VisitGreaterOrEqual(literal);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitIn(
+ const std::vector<Literal>& literals) {
+ return wrapped_->VisitIn(literals);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitNotIn(
+ const std::vector<Literal>& literals) {
+ return wrapped_->VisitNotIn(literals);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitStartsWith(
+ const Literal& prefix) {
+ return wrapped_->VisitStartsWith(prefix);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitEndsWith(
+ const Literal& suffix) {
+ return wrapped_->VisitEndsWith(suffix);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitContains(
+ const Literal& literal) {
+ return wrapped_->VisitContains(literal);
+}
+
+Result<std::shared_ptr<GlobalIndexResult>> LiveRowGlobalIndexReader::VisitLike(
+ const Literal& literal) {
+ return wrapped_->VisitLike(literal);
+}
+
+Result<std::shared_ptr<ScoredGlobalIndexResult>> LiveRowGlobalIndexReader::VisitVectorSearch(
+ const std::shared_ptr<VectorSearch>& vector_search) {
+ return wrapped_->VisitVectorSearch(vector_search);
Review Comment:
Thanks for fixing the full-text case. As noted in the description, vector search on data-evolution tables with deletion vectors enabled still has the same top-k issue: deleted rows can occupy result slots and then be dropped during the data read. Do you have plans to address this in a follow-up? If not, we'll schedule support on our side.
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(global-index): exclude deleted rows from full-text ranking [paimon-cpp]
Posted by "lxy-9602 (via GitHub)" <gi...@apache.org>.
lxy-9602 merged PR #448:
URL: https://github.com/apache/paimon-cpp/pull/448
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org