1

Are there issues with the IN expression? We are having issues where it doesn't find the results we are asking for even though it exists?

{ "SerialNumber": "V8073023", "_t": "DeviceEventDataEvent", "EventType": NumberInt(4), "isDeleted": { $in: [false,null] }, "EventNumber": 122 } Returns the document correctly, however when using IN

{ "SerialNumber": "V8073023", "_t": "DeviceEventDataEvent", "EventType": NumberInt(4), "isDeleted": { $in: [false,null] }, "EventNumber": { $in: [122] } } No data is returned.

5
  • It seems works fine on my side. Commented Apr 11, 2018 at 10:32
  • David, you could post more details such as your sample document, db location. Commented Apr 12, 2018 at 2:20
  • Any updates now? Commented Apr 13, 2018 at 6:18
  • Hey @JayGong, thanks for looking into this. See my answer below. Its an issue on Microsofts side. Waiting for fix to be rolled out Commented Apr 13, 2018 at 10:24
  • @David HI, thanks for your sharing! Commented Apr 14, 2018 at 7:12

2 Answers 2

2

I tried to reproduce your issue on my side but failed. Please refer to my details.

My sample documents in my cosmos db:

{
        "id" : "1",
        "CustomerId" : 1,
        "Orders" : [
            "a",
            "b",
            "c"
        ]
},
{
        "id" : "2",
        "CustomerId" : 2,
        "Orders" : [
            "e",
            "f",
            "g"
        ]
}

Query 1:

enter image description here

Query 2:

enter image description here

My db was built in the region East Asia.If you have any difference with me, you could edit it.

Sign up to request clarification or add additional context in comments.

Comments

1

Microsoft got back to me, issue their side. Thanks to everyone involved for still assisting.

Thank you David for reporting this! I investigated the issue, it’s a bug on our side manifesting under a combination of conditions. I already have made a fix for it and will check it in by end of week (then it’s up to our deployment cycle to propagate the fix to all datacenters around the world). Let me know if you have queries that don’t work and are blocking you. Best regards, Orestis

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.