问题
I have no idea why this happening while querying the cosmos database it won't show any document not even for the
SELECT * FROM c
but the RU's is shown. but it works fine with the Documents tab in documents tab if I'm using any filter then also it working but it won't work for SQL query.
I have added the screenshot for both the case and also the scale & setting.
Do I need to reinstall the azure cosmosdb emulator? if yes then, is there any way to retain my old data of emulator
回答1:
This looks like a bug with the emulator.
I was able to recreate your issue. This only happens with partitioned collections when the partition key isn't provided and you're trying to do a cross partition query.
If you open your Network tab in the browser you can actually see this message:
"The provided cross partition query can not be directly served by the gateway. This is a first chance (internal) exception that all newer clients will know how to handle gracefully. This exception is traced, but unless you see it bubble up as an exception (which only happens on older SDK clients), then you can safely ignore this message"
However you can also see your results returned in another request, they are just not visualised. I looks like the front end is just not handling this first error properly but I can't know for sure.
来源:https://stackoverflow.com/questions/52830304/cosmosdb-emulator-not-giving-any-results