简体   繁体   中英

How to get distinct values applying an azure table storage query?

I want to get the "ReceiverEmail" values of a certain PartitionKey "emailAddress". I want to retrieve only the distinct values of the ReceiverEmail. I am applying this python query on an azure storage table as follows:

entit = table_service.query_entities('UserRequests','PartitionKey eq \'' + emailAddress + '\'',select= 'ReceiverEmail')

Any help of how to get distinct values ?

It seems that it is impossible to directly query distinct values. This official document states the operations that are not supported:

https://docs.microsoft.com/en-us/rest/api/storageservices/query-operators-supported-for-the-table-service#unsupported-query-operators

在此处输入图片说明

If you want this feature, you can go to the feedback website to post your suggestions, and the Azure development team may adopt your suggestions:

https://feedback.azure.com/forums/34192--general-feedback

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM