gpt4 book ai didi

google-bigquery - BigQuery 试运行会返回什么?

转载 作者:行者123 更新时间:2023-12-02 04:24:06 25 4
gpt4 key购买 nike

BigQuery 文档说:

“在表的较小分区而不是在一个大表上测试查询。如果使用 API,请验证查询语法并使用 dryRun 标志获取数据处理统计信息。”

但他们也说,对于 dryRun:

“如果设置,则不会实际运行查询。有效的查询将返回空响应,而无效的查询将返回与不是空运行时相同的错误。默认值为 false。 ”

这些似乎是矛盾的,或者我错过了什么?

最佳答案

我发现这些有点不同步,需要一些澄清。

这是对 dryRun 的另一个更准确的描述。来自 https://cloud.google.com/bigquery/docs/reference/v2/jobs ,搜索dryRun:

[Optional] If set, don't actually run this job. A valid query will return a mostly empty response with some processing statistics, while an invalid query will return the same error it would if it wasn't a dry run. Behavior of non-query jobs is undefined.

看起来像 https://cloud.google.com/bigquery/launch-checklist文档只是缺少两个独立建议之间的要点。

我已经记录了一个内部跟踪错误来清理这个错误。感谢您让我们注意到这一点!

关于google-bigquery - BigQuery 试运行会返回什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28334126/

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