我正在执行以下查询。
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'。 工作ID:job_VWunPesUJVLxWGZsMgpoti14BM4
谢谢, NAVNEET
答案 0 :(得分:1)
我们(BigQuery团队)正在推出新版本的查询引擎,修复了许多问题。您可能点击旧版本的查询引擎,然后在重试时点击新版本。我们可能需要一天左右的时间,一部分流量指向更新后的版本,以确认没有任何回归。如果您在24小时后再次发现此消息,请告诉我们。