gpt4 book ai didi

google-bigquery - 查询失败错误 : Resources exceeded during query execution: The query could not be executed in the allotted memory

转载 作者:行者123 更新时间:2023-12-04 14:09:06 30 4
gpt4 key购买 nike

我使用的是标准 SQL。即使它是一个基本查询,它仍然会抛出错误。任何建议请

SELECT 
fullVisitorId,
CONCAT(CAST(fullVisitorId AS string),CAST(visitId AS string)) AS session,
date,
visitStartTime,
hits.time,
hits.page.pagepath
FROM
`XXXXXXXXXX.ga_sessions_*`,
UNNEST(hits) AS hits
WHERE
_TABLE_SUFFIX BETWEEN "20160801"
AND "20170331"
ORDER BY
fullVisitorId,
date,
visitStartTime

最佳答案

此查询工作的唯一方法是删除最后应用的排序:

SELECT 
fullVisitorId,
CONCAT(CAST(fullVisitorId AS string),CAST(visitId AS string)) AS session,
date,
visitStartTime,
hits.time,
hits.page.pagepath
FROM
`XXXXXXXXXX.ga_sessions_*`,
UNNEST(hits) AS hits
WHERE
_TABLE_SUFFIX BETWEEN "20160801"
AND "20170331"
ORDER BY操作非常昂贵,不能并行处理,所以尽量避免它(或尝试在有限的结果集中应用它)

关于google-bigquery - 查询失败错误 : Resources exceeded during query execution: The query could not be executed in the allotted memory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46005418/

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