谷歌BigQuery相同的查询给出不同的结果 [英] Google BigQuery same queries give different results

查看:98
本文介绍了谷歌BigQuery相同的查询给出不同的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行了两个非常相似的查询。唯一的区别是一个是按字段名称分组,另一个是按字段数量分组(即1,2,3)。



这些2个查询应该给出完全相同的结果,因为查询中没有统计数字。但事实并非如此。一个查询得到5条记录,另一条查询只给出1条记录。



我想知道是否有人可以提供帮助。



以下是工作ID和查询:

工作ID 1:631095067040:job_0NLPcGFK_umGVdyY0fuFnemkos0


选择ID,频道

from my.dataset
其中Id in('aaa',' bbb','ccc','ddd','eee')
分别由Id,Channel分组; b $ b

工作识别码2:631095067040:job_NlWyxr0N4fi5ZnVKYDAVFr7qcew


选择ID,频道

from my.dataset />
其中Id为('aaa','bbb','ccc','ddd','eee')

每组1,2 $ b

感谢!

解决方案

正在跟踪某些查询返回陈旧结果(即返回基于陈旧数据的结果)的问题。



这个问题已经解决,请ping此线程或打开另一个问题,如果您继续看到问题。


I have run 2 very similar queries. The only difference is one is grouping by the names of the fields and the other one is grouping by the number of the fields (i.e. 1,2,3).

These 2 queries should be giving exactly the same result as there is no count distinct in the queries. However, it's not the case. One query gets 5 records and the other one gives only 1 record.

I am wondering if anyone could help.

Here are the job ids and queries:

Job ID 1: 631095067040:job_0NLPcGFK_umGVdyY0fuFnemkos0

select Id, Channel
from my.dataset
where Id in ('aaa','bbb','ccc','ddd','eee')
group each by Id, Channel;

Job ID 2: 631095067040:job_NlWyxr0N4fi5ZnVKYDAVFr7qcew

select Id, Channel
from my.dataset
where Id in ('aaa','bbb','ccc','ddd','eee')
group each by 1,2

Thanks!

解决方案

We (the BigQuery team) are tracking an issue where some queries are returning stale results (that is, return results that are based on stale data).

This issue has been resolved, please ping this thread or open another issue if you continue to see problems.

这篇关于谷歌BigQuery相同的查询给出不同的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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