前提
- rubyのgcpのapi(https://github.com/GoogleCloudPlatform/google-cloud-ruby) 使ってます
- query_jobでexportしてます
結論
large_results: trueオプションをつければいい
query_job = @api.query_job sql,
table: result_table,
standard_sql: true,
write: 'truncate',
create: 'never',
large_results: true, <- これ
params: params
はまりどこ
- standardSQLはAllowLargeResultが常にtrueって書いてあるけど、そんなことなかった