正如这里所解释的,StackOverflow 问题可以由于多种原因而关闭,即重复的...、偏离主题的原因...、需要细节或清晰度、需要更多的关注和基于意见的。
查询在 Google Cloud Platform 上的公共 StackOverflow Bigquery 上执行。这个 Bigquery 包含post_questions和votes等表,第一个包含所有问题,第二个包含对这些问题的投票。
post_questions架构:
ID | 标题 | 身体 | accepted_answer_id | answer_count | 评论计数 | ... |
---|
投票架构:
ID | 创立日期 | post_id | 投票类型 ID |
---|
存在 16 个不同的vote_type_id,根据Meta上的这篇文章,vote_type_id 6 对应于关闭投票。在用户投了三票后,一个问题在 StackOverflow 上显示为已结束。因此,以下查询将返回 10 个已关闭问题的 id 和 URL。
SELECT q.id, CONCAT('/sf/', CAST(q.id as STRING)) as url,
FROM `bigquery-public-data.stackoverflow.posts_questions` AS q
JOIN `bigquery-public-data.stackoverflow.votes` AS v
ON q.id …
Run Code Online (Sandbox Code Playgroud) 根据MS Graph API 文档,businessPhones支持在带有eq比较的$filter查询中使用,就像imAddresses属性一样。
在检查 Microsoft 的使用查询参数文档时,有一个示例,其中在集合过滤器中使用imAddresses属性,并且它工作得很好。
GET https://graph.microsoft.com/v1.0/users?$filter=imAddresses/any(s:s eq 'admin@contoso.com')
我的目标是列出在其BusinessPhones集合属性中具有特定电话号码的所有用户。但是,当我尝试在类似查询中使用businessPhones属性时,该查询无法按预期工作。
GET https://graph.microsoft.com/v1.0/users?$filter=businessPhones/any(s:s eq '1234')
状态代码:400
{
"error": {
"code": "Request_UnsupportedQuery",
"message": "Unsupported or invalid query filter clause specified for property 'businessPhones' of resource 'User'.",
"innerError": {
"date": "2021-07-30T08:07:24",
"request-id": "ac3923be-de11-448f-b2b5-245edc82d20e",
"client-request-id": "ac3923be-de11-448f-b2b5-245edc82d20e"
}
}
}
Run Code Online (Sandbox Code Playgroud)
对我所缺少的有什么想法吗?