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

[Bug]: query_iterator gives KeyError: 'is_primary' exception #1811

Closed
1 task done
uncle-yura opened this issue Dec 5, 2023 · 0 comments
Closed
1 task done

[Bug]: query_iterator gives KeyError: 'is_primary' exception #1811

uncle-yura opened this issue Dec 5, 2023 · 0 comments

Comments

@uncle-yura
Copy link

uncle-yura commented Dec 5, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

The problem stated in the issue still exists in version 2.3.4.
As written in this comment, checking the condition causes a KeyError exception.

Here it is necessary to replace
if field[IS_PRIMARY]:
with
if field.get(IS_PRIMARY):
or with
if IS_PRIMARY in field and field[IS_PRIMARY]:

Expected Behavior

No response

Steps/Code To Reproduce behavior

No response

Environment details

- Hardware/Softward conditions (OS, CPU, GPU, Memory):
- Method of installation (Docker, or from source):
- Milvus version (v0.3.1, or v0.4.0):
- Milvus configuration (Settings you made in `server_config.yaml`):

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant