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

Fix a bug: incorrect outputFields of query/search with milvus v2.5.8 #1355

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

yhmo
Copy link
Contributor

@yhmo yhmo commented Apr 3, 2025

In milvus v2.5.8, the returned QueryResults is changed, the output_fields member doesn't contain the primary key name.
in milvus versions <= v2.5.7, the QueryResults.output_fields always contains the primary key name. And Java SDK uses the QueryResults.output_fields to fetch data.

So, with milvus v2.5.8, the Java SDK query() cannot get the primary key values. This pr is to follow the logic of pymilvus. In pymilvus, the QueryResults.output_fields is ignored.

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yhmo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@yhmo yhmo added the lgtm label Apr 7, 2025
@sre-ci-robot sre-ci-robot merged commit 28ca9ba into milvus-io:2.5 Apr 7, 2025
5 checks passed
@yhmo yhmo deleted the 25 branch April 7, 2025 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants