https://github.com/thomaslevesque/testcosmosdistinctbug
Repro for https://github.com/Azure/azure-documentdb-dotnet/issues/536
https://github.com/thomaslevesque/testcosmosdistinctbug
Last synced: about 1 year ago
JSON representation
Repro for https://github.com/Azure/azure-documentdb-dotnet/issues/536
- Host: GitHub
- URL: https://github.com/thomaslevesque/testcosmosdistinctbug
- Owner: thomaslevesque
- Created: 2018-07-02T08:48:48.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-02T09:07:49.000Z (almost 8 years ago)
- Last Synced: 2025-01-30T07:43:20.661Z (over 1 year ago)
- Language: C#
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TestCosmosDistinctBug
Repro for https://github.com/Azure/azure-documentdb-dotnet/issues/536
## How to run
Update appsettings.json with your CosmosDB endpoint, account key, database id and collection id.
Run with `dotnet run`
When target framework is `netcoreapp2.1`: Error
> Unhandled Exception: Microsoft.Azure.Documents.BadRequestException: Message: {"errors":[{"severity":"Error","location":{"start":7,"end":15},"code":"SC1001","message":"Syntax error, incorrect syntax near 'DISTINCT'."}]}, Windows/10.0.17134 documentdb-netcore-sdk/1.9.1 ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800A0B00
When target is `net461`: Success