milvus icon indicating copy to clipboard operation
milvus copied to clipboard

[Bug]: Can not query JSON field

Open zrg-team opened this issue 1 year ago • 19 comments

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

image

Query with JSON

image

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

zrg-team avatar Sep 15 '23 16:09 zrg-team

it should be json_contains(props["ids"], 1) right?

xiaofan-luan avatar Sep 15 '23 17:09 xiaofan-luan

contains can not run with a array, only contains_any or contains_all

xiaofan-luan avatar Sep 15 '23 17:09 xiaofan-luan

same result image

zrg-team avatar Sep 15 '23 17:09 zrg-team

the expression is correct, what is 2.3.0-dev? the latest master branch?

xiaofan-luan avatar Sep 16 '23 02:09 xiaofan-luan

  1. could you offer the querynode logs, we can. investigate on if there are any other errors?
  2. did you ever try this could work in pymilvus?

xiaofan-luan avatar Sep 16 '23 02:09 xiaofan-luan

@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

zrg-team avatar Sep 16 '23 09:09 zrg-team

we will keep investigating on this issue too

xiaofan-luan avatar Sep 17 '23 01:09 xiaofan-luan

/assign @xiaocai2333 /unassign

yanliang567 avatar Sep 18 '23 01:09 yanliang567

@zrg-team The latest image does not have this problem. You can try again with the latest image.

xiaocai2333 avatar Sep 19 '23 06:09 xiaocai2333

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.

stale[bot] avatar Oct 19 '23 21:10 stale[bot]

image

json_contains(references["table_definition_ids"], [120])

still not work

/reopen

zrg-team avatar Jan 04 '24 09:01 zrg-team

@zrg-team: Reopened this issue.

In response to this:

image

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.

sre-ci-robot avatar Jan 04 '24 09:01 sre-ci-robot

/assign @elstic please help to check if it reproduces on v2.3.4

yanliang567 avatar Jan 04 '24 10:01 yanliang567

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.

stale[bot] avatar Mar 03 '24 21:03 stale[bot]

image

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)

xiaocai2333 avatar Mar 27 '24 11:03 xiaocai2333

/assign @zrg-team /unassign

xiaocai2333 avatar Mar 27 '24 11:03 xiaocai2333

@xiaocai2333 @zrg-team Does Milvus version 2.2.9 support json_contains filter function?

Aries-ckt avatar Apr 08 '24 12:04 Aries-ckt

@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

xiaocai2333 avatar Apr 08 '24 12:04 xiaocai2333

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.

stale[bot] avatar May 10 '24 20:05 stale[bot]