BigQuery 中的请求正文

Request Body in BigQuery

美好的一天,

我正在使用 BigQuery 作为其数据源的另一个系统中测试 post 方法。 我目前正在 BigQuery 的实时数据上测试调用方法,以查看 API 请求是否得到响应。

我想知道的是:insertId 是不是我想要定位的列,在这种情况下,客户端 ID 和 JSON 对象应该包含所有数据在该列 ID 中?

  "kind": "bigquery#tableDataInsertAllRequest",
  "skipInvalidRows": false,
  "ignoreUnknownValues": false,
  "rows": [
    {
      "insertId": "ClientID",
      "json": {
        "ClientID": "55415",
        "Client": "LANGA BRANCH",
        "Project": "Customer Visits",
        "Developer": "Bryan",
        "Hours": "300"
      }
    }
  ]
}```

insertId 是可选字段。它可以(而且可能应该)完全省略,因为它是在尽力而为的基础上用于重复数据删除的。省略它会产生更高的吞吐量:https://cloud.google.com/bigquery/quotas#streaming_inserts_without_insertid_fields

insertAll 的 REST 参考在这里: https://cloud.google.com/bigquery/docs/reference/rest/v2/tabledata/insertAll