尝试执行完全外连接时,我收到Bigquery内部错误。如果我使用内连接,查询会成功。
工作统计数据可以在以下网址看到:
获取https://www.googleapis.com/bigquery/v2/projects/quantum-gearbox-90015/jobs/job_AQtc0zMEkDHkk-OmCXCGRk6zycs?key= {YOUR_API_KEY}
查询如下:
选择 当t1.userId不为空时t1.userId ELSE t2.userId END AS userId, 例如,当t1.jobId不为空时t1.jobId ELSE t2.jobId END as jobId, 例如,当t1.result_duration不为空时t1.result_duration ELSE t2.result_duration END AS result_duration, 例如,当t1.job_submitted_ts不为空时t1.job_submitted_ts ELSE t2.job_submitted_ts END AS job_submitted_ts, 例如,当t1.job_running_ts不为空时t1.job_running_ts ELSE t2.job_running_ts END AS job_running_ts, 例如,当t1.job_complete_ts不为空时t1.job_complete_ts ELSE t2.job_complete_ts END AS job_complete_ts, 如果t1.last_updated_ts,则t1.userId为空并且t2.userId不为空 当t1.jobId为空且t2.jobId不为空时t2.last_updated_ts 当t1.result_duration为空并且t2.result_duration不为空时t2.last_updated_ts 当t1.job_submitted_ts为空并且t2.job_submitted_ts IS not NULL然后t2.last_updated_ts 当t1.job_running_ts为空并且t2.job_running_ts不为空时t2.last_updated_ts 当t1.job_complete_ts为空并且t2.job_complete_ts不为空时t2.last_updated_ts ELSE t1.last_updated_ts END AS last_updated_ts FROM( 选择 用户身份, 的jobId, result_duration, job_submitted_ts, job_running_ts, job_complete_ts, last_updated_ts 从 [activeJobs.jobScoreboard])t1 每个外面都加入( 选择 用户身份, 的jobId, result_duration, job_submitted_ts, job_running_ts, job_complete_ts, INTEGER(ROUND(NOW()/ 1000,0))AS last_updated_ts FROM( 选择 用户身份, 的jobId, MAX(CASE WHEN eventType ='WORKITEM_COMPLETE'THEN data.result.data.duration END)AS result_duration, MIN(CASE WHEN eventType ='JOB_SUBMITTED'THEN timestamp END)AS job_submitted_ts, MIN(CASE WHEN eventType ='JOB_RUNNING'THEN timestamp END)AS job_running_ts, MAX(CASE WHEN eventType ='JOB_COMPLETE'THEN timestamp END)AS job_complete_ts, 从 [trebekProd.JobActivity_20151125T000000Z_20151126T000000Z@1448472935436-] 通过...分组 用户身份, 的jobId))T2 上 t1.jobId = t2.jobId
答案 0 :(得分:0)
您的错误的根本原因是我们的流式提取服务暂时超载。由于系统上的聚合负载,在运行查询时无法为您的表提供数据。我们将进一步调查此问题并解决潜在问题。现在,如果再次运行查询,它应该会成功。