如果分区键包含感叹号,则Azure存储查询不会返回数据

时间:2019-05-21 09:31:15

标签: c# .net azure encoding azure-storage

我在分区键上包含一个感叹号的地方存储了一些数据,当我对该分区键进行查询时,我得到了奇怪的结果。

我尝试了以下方法。可以说分区键是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

1 个答案:

答案 0 :(得分:0)

正如 GauravMantri 在他的评论中所说。这是 sdk 的问题,它正在转换 '!' 'not',因此查询将不匹配。