Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering by Timestamp isn't working #328

Open
kzu opened this issue Aug 30, 2024 · 0 comments
Open

Filtering by Timestamp isn't working #328

kzu opened this issue Aug 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kzu
Copy link
Member

kzu commented Aug 30, 2024

Describe the Bug

the following query:

await foreach (var item in TablePartition.Create(table, "backed").CreateQuery().Where(x => x.Timestamp > startDate))
{
}

Results in a filter URL that doesn't contain the cast to datetime of the value, and always yields empty results.

Same query using table client does work:

await foreach (var item in tableClient.QueryAsync<TableEntity>(x => x.PartitionKey == "backed" && x.Timestamp > startDate))
    {

It seems we could improve things in particular for ITableEntity by simply delegating more to the built-in query mechanism rather than using OData directly in that case.

The underlying issue would still exist for POCO objects with date time properties though 🤔

Back this issue
Back this issue

@kzu kzu added the bug Something isn't working label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant