milvus
milvus copied to clipboard
[Bug]: Can not query JSON field
Is there an existing issue for this?
- [X] I have searched the existing issues
Environment
- Milvus version:
v2.3.0-dev
- Deployment mode(standalone or cluster):
STANDALONE
- MQ type(rocksmq, pulsar or kafka):
DEFAULT
- SDK version(e.g. pymilvus v2.0.0rc2):
DEFAULT
- OS(Ubuntu or CentOS):
MACOS
- CPU/Memory:
- GPU:
- Others:
Current Behavior
Query with JSON
Can not query
Expected Behavior
Query JSON field correctly
Steps To Reproduce
1. Add props field with JSON type
2. Add data { "ids": [1] }
3. Do query json_contains(props["ids"], [1])
Milvus Log
No response
Anything else?
No response
it should be json_contains(props["ids"], 1) right?
contains can not run with a array, only contains_any or contains_all
same result
the expression is correct, what is 2.3.0-dev? the latest master branch?
- could you offer the querynode logs, we can. investigate on if there are any other errors?
- did you ever try this could work in pymilvus?
@xiaofan-luan v2.3.0-dev is latest docker image for standalone version pymilvus I'm using nodejs sdk
yes let me provide some log from Milvus standalone docker
we will keep investigating on this issue too
/assign @xiaocai2333 /unassign
@zrg-team The latest image does not have this problem. You can try again with the latest image.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Rotten issues close after 30d of inactivity. Reopen the issue with /reopen
.
json_contains(references["table_definition_ids"], [120])
still not work
/reopen
@zrg-team: Reopened this issue.
In response to this:
json_contains(references["table_definition_ids"], [120])
still not work
/reopen
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/assign @elstic please help to check if it reproduces on v2.3.4
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Rotten issues close after 30d of inactivity. Reopen the issue with /reopen
.
json_contains(references["table_definition_ids"], [120])
still not work
/reopen
Do you want to search a list? If you just want to check whether it contains the element 120, the expression should be json_contains(references["table_definition_ids"], 120)
/assign @zrg-team /unassign
@xiaocai2333 @zrg-team Does Milvus version 2.2.9 support json_contains filter function?
@xiaocai2333 @zrg-team Does Milvus version 2.2.9 support json_contains filter function?
@Aries-ckt we support json_contains in v2.2.12. https://github.com/milvus-io/milvus/releases/tag/v2.2.12
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Rotten issues close after 30d of inactivity. Reopen the issue with /reopen
.