gpt4 book ai didi

Azure逻辑应用程序: Continuation token is not supported for queries with GROUP BY

转载 作者:行者123 更新时间:2023-12-03 00:23:27 26 4
gpt4 key购买 nike

我正在尝试使用 Azure 逻辑应用中的 Group By 子句来查询包含 150 万个文档的单个分区。

我可以毫无问题地运行在 Cosmos 数据资源管理器中的逻辑应用中编码的查询:

[{
"AreasProcessed": 1,
"TotalProperties": 1286,
"status": 500
},
{
"AreasProcessed": 45,
"TotalProperties": 0,
"status": 400
},
{
"AreasProcessed": 2275,
"TotalProperties": 2399469,
"status": 200
}]

但是,当我在逻辑应用中运行查询时,出现以下错误:

Continuation token is not supported for queries with GROUP BY. Do not use FeedResponse.ResponseContinuation or remove the GROUP BY from the query.

我已在逻辑应用程序上启用分页和异步模式。

逻辑应用上的完整错误如下,有人可以帮助我吗?

{"error": {
"code": 500,
"source": "logic-apis-westeurope.azure-apim.net",
"clientRequestId": "4d6a4cdb-8969-4dd7-b382-90929c7ec829",
"message": "BadGateway",
"innerError": {
"status": 500,
"message": "Continuation token is not supported for queries with GROUP BY. Do not use FeedResponse.ResponseContinuation or remove the GROUP BY from the query.\r\nclientRequestId: 4d6a4cdb-8969-4dd7-b382-90929c7ec829",
"error": {
"message": "Continuation token is not supported for queries with GROUP BY. Do not use FeedResponse.ResponseContinuation or remove the GROUP BY from the query."
},
"source": "documentdb-we.azconn-we.p.azurewebsites.net"
}
}}

最佳答案

据我所知,azure团队已将“文档资源管理器”、“查询资源管理器”、“脚本资源管理器”功能集成为“数据浏览器”的一部分。因此“Data Explorer”是进行查询的最佳方式。我不确定 Azure 逻辑应用是否使用与“查询资源管理器”或“文档资源管理器”相同的后端,但逻辑应用似乎不使用相同的后端使用“数据浏览器”。我认为这就是为什么您可以在门户上的“数据资源管理器”中运行查询但无法在逻辑应用中运行查询的原因。

对于这个问题,您可以create azure 函数并使用函数中的代码进行查询。然后call逻辑应用中的函数。这是另一个post这与您的问题类似(但不相同)供您引用。

关于Azure逻辑应用程序: Continuation token is not supported for queries with GROUP BY,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63439411/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com