2014-01-28 125 views
0

我正在執行以下查詢。Bigquery Query第一次失敗併成功完成第二次

SELECT properties.os, boundary, user, td, 
    SUM(boundary) OVER(ORDER BY rows) AS session 
FROM 
    (
    SELECT properties.os, ROW_NUMBER() OVER() AS rows, user, td, 
    CASE WHEN td > 1800 THEN 1 ELSE 0 END AS boundary 
    FROM (
    SELECT properties.os, t1.properties.distinct_id AS user, 
     (t2.properties.time - t1.properties.time) AS td 
    FROM (
     SELECT properties.os, properties.distinct_id, properties.time, srlno, 
     srlno-1 AS prev_srlno 
     FROM (
     SELECT properties.os, properties.distinct_id, properties.time, 
      ROW_NUMBER() 
     OVER (PARTITION BY properties.distinct_id 
      ORDER BY properties.time) AS srlno 
     FROM [ziptrips.ziptrips_events] 
     WHERE properties.time > 1367916800 
      AND properties.time < 1380003200)) AS t1 
    JOIN (
     SELECT properties.distinct_id, properties.time, srlno, 
     srlno-1 AS prev_srlno 
     FROM (
     SELECT properties.distinct_id, properties.time, 
      ROW_NUMBER() OVER 
      (PARTITION BY properties.distinct_id ORDER BY properties.time) AS srlno 
     FROM [ziptrips.ziptrips_events] 
     WHERE 
      properties.time > 1367916800 
      AND properties.time < 1380003200)) AS t2 
    ON t1.srlno = t2.prev_srlno 
     AND t1.properties.distinct_id = t2.properties.distinct_id 
    WHERE (t2.properties.time - t1.properties.time) > 0)) 

它第一次失敗,出現以下錯誤。然而在第二輪運行中,它完成沒有任何問題。我很感激任何可能導致這種情況的指針。

錯誤消息是: 查詢失敗 錯誤:在'__R2'表中找不到字段'properties.os'。 職位編號:job_VWunPesUJVLxWGZsMgpoti14BM4

感謝, 那伏乃爾

回答

1

我們(的BigQuery隊)都在推出,修復了一些像這樣的問題,查詢引擎的新版本的過程。您可能會碰到舊版本的查詢引擎,然後當您重試時,請點擊新版本。對於部分流量指向更新後的版本,我們可能需要一天左右的時間才能確認沒有任何迴歸。如果您在24小時左右之後再次點擊,請告訴我們。

相關問題