BigQuery 干什么 运行 return?

What does a BigQuery dry run return?

BigQuery 文档说:

"Test your queries on smaller partitions of the table rather than one large table. If using the API, validate queries for syntax and get data processing statistics using the dryRun flag."

但他们也说,对于 dryRun:

"If set, don't actually run the query. A valid query will return an empty response, while an invalid query will return the same error it would if it wasn't a dry run. The default value is false."

这些似乎是矛盾的,还是我漏掉了什么?

不,这并不矛盾。

在我看来,第一条消息说 "try to see if your query will be runnable by turning on the "干 运行“旗帜”。

虽然第二条消息显示 "If you have the DryRun flag set to true, it will return statistics about your query, so "totalBytesProcessed",但没有 运行ning 您的查询,如果查询有效,并且如果查询无效,您通常会收到相同的错误"。 =10=]

因此,将 "dry run" 视为处理字节的语法 checker/error checking/checked。

我看到这些有点不同步,需要一些说明。

这里是 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 文档只是缺少两个独立建议之间的要点。

我已经记录了一个内部跟踪错误来清理它。感谢您提醒我们注意此事!