Azure / azure-cosmos-dotnet-v3

.NET SDK for Azure Cosmos DB for the core SQL API
MIT License
737 stars 493 forks source link

Support DateTimeBin in LINQ #3935

Open onionhammer opened 1 year ago

onionhammer commented 1 year ago

Is your feature request related to a problem? Please describe. DateTimeBin is a datetime function in Cosmos: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/datetimebin

Describe the solution you'd like Add DateTimeBin to CosmosLinqExtensions.

Describe alternatives you've considered Building raw queries

I am open to submitting another PR for this, if I can get a project member to sponsor that they will help shepherd it through the PR process.

adityasa commented 1 year ago

@onionhammer I will be happy to review this for you. Thanks!

onionhammer commented 1 year ago

@adityasa cool, I will try to start working on a PR in the next week or two

onionhammer commented 1 year ago

@adityasa It looks like GroupBy support still isn't in-place for this SDK... not sure how useful DateTimeBins are without GroupBy support. I think we should put this on hold for the time being. GroupBy is far more critical to support, and is still a huge gap in this library.

See https://github.com/Azure/azure-cosmos-dotnet-v3/issues/1202