Repository navigation
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: yuee3 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
…ilvus-io#3868) Signed-off-by: yuee3 <yuee3@users.noreply.github.com>
yuee3
force-pushed
the
fix/upsert-schema-function-output
branch
from
November 5, 2026 02:48
891e7d7 to
7699a43
Compare
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
Author
|
Closing as a duplicate of #3870, which already addresses this issue. Sorry for the noise. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3868
Summary
check_upsert_schema()validated the input columns against every field in the schema, including fields produced by aFunction(for example a BM25 sparse output).check_insert_schema()already excludes function outputs, so an upsert that only supplies the source columns is wrongly rejected withDataNotMatchException.Fix
Filter out
is_function_outputfields before the column-count check, mirroring the insert path. The previouscopy.deepcopy()is no longer needed because_check_data_schema_cnt()only reads the fields.Test
Added
test_check_upsert_schema_skips_function_outputtotests/unit/orm/test_schema.py. It fails on master and passes with the fix.pytest tests/unit/orm/test_schema.py-> 255 passed; black/ruff clean.