Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.44k stars 2.75k forks source link

Sorting for Cosmos Table API not working similar to Azure Table Storage API which is on RowKey Column #35422

Open shubhAIEgon opened 4 months ago

shubhAIEgon commented 4 months ago

Describe the bug When migrating from Azure Storage Table API to Azure Cosmos DB Table API. The sorting of entities used to work on basis of RowKey in Azure Storage Table but In the Azure Cosmos DB Table API It seems to be working on Timestamp column is there a way to add latest record on top of table?

Please find the screen shot attached where issue can clearly be seen

screenshot cosmos issue

github-actions[bot] commented 4 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @klaaslanghout.

pvaneck commented 4 months ago

@YalinLi0312 maybe you might have some insight here?

Note: seems you are using the azure-cosmosdb-table package which has been superseded by azure-data-tables. There is a migration guide.

YalinLi0312 commented 3 months ago

Hi @shubhAIEgon , can you try with azure-data-tables? Let us know if the issue still exists. Thanks

shubhAIEgon commented 3 months ago

@YalinLi0312 @pvaneck just tried the same with azure-data-tables no difference.

YalinLi0312 commented 3 months ago

Thanks for the feedback, we'll investigate ASAP!