我正在运行一个查询,该查询提供了一组非重叠的first_party_id - 与一个第三方相关联但不与另一个相关联的ID.但是,此查询不会在Athena中运行,从而产生错误:Correlated queries not yet supported.
正在查看prestodb文档, https://prestodb.io/docs/current/sql/select.html(Athena是引擎盖下的prestodb),用于替代嵌套查询.with statement给出的 例子对于这个not in条款似乎没有很好的解释.想知道嵌套查询的替代方法是什么 - 查询如下.
SELECT
COUNT(DISTINCT i.third_party_id) AS uniques
FROM
db.ids i
WHERE
i.third_party_type = 'cookie_1'
AND i.first_party_id NOT IN (
SELECT
i.first_party_id
WHERE
i.third_party_id = 'cookie_2'
)
Run Code Online (Sandbox Code Playgroud) 所以不确定如何指向正确的域
boto3.client('cloudsearchdomain').upload_documents(file, type)
Run Code Online (Sandbox Code Playgroud)
文档https://boto3.readthedocs.io/en/latest/reference/services/cloudsearchdomain.html表示要使用CloudSearch DescribeDomains操作配置域.但是,在CloudSearch的文档中,https: //boto3.readthedocs.io/en/latest/reference/services/cloudsearch.html#CloudSearch.Client.describe_domains 仅列出了一个方法,describe_domains,它仅列出域,信息等.如何指出正确的域名将文档上传到cloudsearch?