Performing a simple SQL query incorrectly returns all documents. #173
Labels
cosmosEmulatorVnextPreview
issues raised for the vNext Linux based emulator (preview)
needs-investigation
Performing a simple SQL query incorrectly returns all documents.
Steps to reproduce the behavior:
docker run --detach --publish 8081:8081 --publish 1234:1234 --name LocalCosmos mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview
ExampleDb
ExampleDb
namedCustomers
. Use the partition keyfdmNumber
ExampleDb
->Customers
->Items
Upload item
feature, import customers.jsonNew SQL Query
in the top menuSELECT c.id,c.fdmNumber,c.type,c.fullname FROM c WHERE (c.fdmNumber = '12345678' and c.type = 'Customer') or (c.fdmNumber = '55664477' and c.type = 'Customer')
I would expect to see two matching documents, the ones with ids "782727de-4093-47be-86c3-65b9a51aaf04" and "f62a8f46-3a10-4789-b1f5-f676090fe8d7" but as shown, all 5 are returned:
The same query executed against the same data in our test, staging and production instances of CosmosDB in Azure works as expected, returning the two expected matches.
The text was updated successfully, but these errors were encountered: