简体   繁体   English

Azure存储:表查询过滤器在模拟器上有效,但在Azure上无效

[英]Azure Storage: Table query filter works on Emulator but no on Azure

i'm trying to run a query on an Azure Storage table with this filter 我正在尝试使用此过滤器在Azure存储表上运行查询

(PartitionKey eq '6') and (ReservedOn ne datetime'0001-01-01T00:00:00.0000000Z')

However, it works on my local emulator but not on Azure. 但是,它可以在我的本地模拟器上运行,但不能在Azure上运行。 would like to know what might be wrong with this query. 想知道此查询可能出什么问题。

Thank you 谢谢

I believe the issue is the date/time field. 我认为问题在于日期/时间字段。 Minimum value of a date/time attribute supported in Azure is 12:00 midnight, January 1, 1601 AD (CE), UTC (Ref: https://docs.microsoft.com/en-us/rest/api/storageservices/understanding-the-table-service-data-model#tables-entities-and-properties - Please read Property Types section). Azure中支持的日期/时间属性的最小值是12:00 midnight, January 1, 1601 AD (CE), UTC (参考时间: https//docs.microsoft.com/zh-cn/rest/api/storageservices/了解表服务数据模型#tables-实体和属性 -请阅读Property Types部分)。

Since you're specifying a value smaller than this, I believe that is causing problems. 由于您指定的值小于此值,因此我认为这会引起问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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