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 does not work as before #2394

Open
1 task done
ravi160822 opened this issue Nov 29, 2024 · 0 comments
Open
1 task done

[Bug]: query_iterator does not work as before #2394

ravi160822 opened this issue Nov 29, 2024 · 0 comments
Labels
kind/bug Something isn't working

Comments

@ravi160822
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

seems something changed with the query_iterator in the new release,
now I don't get all the docs, it just returns me the first batch

Expected Behavior

expected I should get all the docs like it was working before the new release.

Steps/Code To Reproduce behavior

from pymilvus import connections, Collection​
​
connections.connect(​
    uri="http://localhost:19530",​
    token="root:Milvus"​
)​
​
collection = Collection("query_collection")​
​
iterator = collection.query_iterator(​
    batch_size=10,​
    expr="color like \"red%\"",​
    output_fields=["color"]​
)​
​
results = []​
​
while True:​
    result = iterator.next()​
    if not result:​
        iterator.close()​
        break​
​
    print(result)​
    results += result​

same snippet as in the docs

Environment details

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

Anything else?

no

@ravi160822 ravi160822 added the kind/bug Something isn't working label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant