资源在使用DAY()或DATE()函数时超出了简单查询范围 [英] Resources Exceeded on simple query when using DAY() or DATE() functions

查看:93
本文介绍了资源在使用DAY()或DATE()函数时超出了简单查询范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此查询运行失败,超出资源:

  SELECT 
*,
DAY(event_timestamp)作为whywontitwork,
FROM
looker_scratch.LR_78W8A60O4MQ20L2U6OA5B_events_sql_doctor_activity

但是这个工作正常:

  SELECT 
*
FROM
looker_scratch.LR_78W8A60O4MQ20L2U6OA5B_events_sql_doctor_activity

源表格是14m行,但是我之前在更大的数据集上运行过类似的查询。我们已经启用了大量的结果,并且尝试了两个平坦的结果,而不是(尽管无论如何都没有嵌套字段)。如果使用DATE()函数而不是DAY()或REGEXP_EXTRACT()函数,则也会发生此错误。

作业ID是真实的主要:bquijob_69e3a888_152f1fdc205。

解决方案

您在BigQuery中遇到内部错误。我们在下午3点左右(美国太平洋时间)调整了查询​​引擎的配置,以防止出现错误。


$ b 更新:观察错误率,看起来这个改变已经解决了这个问题。如果您发现任何其他问题,请告诉我们。请注意,StackOverflow最适合使用问题,但如果您怀疑存在问题,则可以在我们的公共问题跟踪器


This query runs fails with resources exceeded:

SELECT
  *,
  DAY(event_timestamp) as whywontitwork,
FROM
looker_scratch.LR_78W8A60O4MQ20L2U6OA5B_events_sql_doctor_activity

But this one works fine:

SELECT
  *
FROM
looker_scratch.LR_78W8A60O4MQ20L2U6OA5B_events_sql_doctor_activity

The source table is 14m rows but I've run similar queries on much larger datasets before. We have large results enabled and have tried both flattened results and not (though there are no nested fields anyway). The error also occurs if you use the DATE() function instead of DAY(), or a REGEXP_EXTRACT() function

The job id is realself-main:bquijob_69e3a888_152f1fdc205.

解决方案

You've hit an internal error in BigQuery. We tweaked our query engine's configuration at around 3pm (US Pacific Time) in an effort to prevent the error.

Update: After observing the error rate, it looks like this change has fixed the problem. If you see any other issues, please let us know. Note that StackOverflow is best for usage questions, but if you suspect a bug, you can file an issue at our public issue tracker.

这篇关于资源在使用DAY()或DATE()函数时超出了简单查询范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆