by shigemk2

当面は技術的なことしか書かない

BigQuery

timePartitioning

timePartitioning PHPとかでfieldを指定すると、"Field based partitioning support is not yet available for this project"とか言われて怒られる。 "timePartitioning": { "type": string, "expirationMs": long, "field": string }, https://cloud.google…

bigquery partition

bigquery partition こんな感じ。テーブルを作りつつパーティションを組む。なお、パーティションを組まないとクエリの計算量が増えて課金で死ぬからパーティションはちゃんとしようね。 bq mk --time_partitioning_type=DAY mydataset.table1 https://cloud…

BQ Links

BQ links https://cloud.google.com/bigquery/docs/reference/rest/v2/tables https://cloud.google.com/bigquery/quotas https://cloud.google.com/bigquery/docs/loading-data-local https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs

BQ error handling

BQ error handling なんかエラー起きたらこのあたりを見たら良いと思うんだ。 https://cloud.google.com/bigquery/troubleshooting-errors?hl=ja

BigQuery data type

BigQuery data type Google BigQuery のレガシー SQL でサポートされるデータ型について timestampはutcカウント。 https://cloud.google.com/bigquery/data-types