我希望使用Python运行查询的结果与在azureportal中相同
在Azure Cosmos表中,我有两行具有时间戳的实体UserOpinion: 2019年10月21日星期一10:56:04 GMT; 2019年10月21日星期一11:32:49 GMT
查询时间戳ge datetime'2019-10-16T18:11:36.378Z' 结果在Azure门户内部返回2行。你知道吗
table_service = TableService(endpoint_suffix="table.cosmos.azure.com", connection_string=connection_string)
objects = table_service.query_entities("UserOpinion", filter = "Timestamp ge datetime'2019-10-16T18:11:36.378Z'" )
Python返回的对象列表是空的,但它不会引发任何格式异常
请尝试将日期时间的比较更改为以下内容:
你也可以试试下面的东西:
附加参考:
https://github.com/Azure/azure-storage-python/issues/202
希望有帮助。你知道吗
相关问题 更多 >
编程相关推荐