我存储了一些数据,其中分区键包含感叹号,当我对该分区键进行查询时,我得到了奇怪的结果。
我已经尝试过以下方法。假设分区键是 t!est
我尝试了以下查询,结果令人满意
PartitionKey eq 't!est' = Noting returned
PartitionKey gt 't!est' = Noting returned
PartitionKey ge 't!est' = Noting returned
PartitionKey lt 't!est' = Record returned (Along side others)
PartitionKey le 't!est' = Record returned (Along side others)
我本以为平等者至少能找回我的记录。有什么我不明白的吗?
测试:
- SDK .Net 版本 7.2.1
- SDK .Net 版本 9.3.3
- Microsoft Azure 存储资源管理器版本 1.8.1
最佳答案
正如GauravMantri所述在他的评论中。这是 sdk 的问题,它正在转换“!”为“not”,因此查询将不匹配。
关于c# - 如果分区键包含感叹号,Azure 存储查询不会返回数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56235303/