同时在同一数据库上进行相同查询但结果不同?? [大查询]
Same Queries on Same database at same time but Different Results?? [Big Query]
我正在使用 Google Big Query 在数据集上执行一些 mysql 类型的查询。这两个查询几乎相同(它们仅在使用 SELECT 检索的 2 列的顺序上有所不同,所有其他 parameters/conditions 都相同)但是当在同一数据库上一个接一个地执行时,它们会给出两个不同的输出.我是 BigQuery 的初学者,也是 MySQL。请帮助。
查询及结果如下
查询 1:
SELECT web100_log_entry.snap.MinRTT AS rttval,
web100_log_entry.connection_spec.remote_ip AS rip
FROM [measurement-lab:m_lab.2010_01]
WHERE IS_EXPLICITLY_DEFINED(connection_spec.client_geolocation.continent_code)
AND IS_EXPLICITLY_DEFINED(web100_log_entry.log_time)
AND IS_EXPLICITLY_DEFINED(connection_spec.client_geolocation.country_code)
AND IS_EXPLICITLY_DEFINED(web100_log_entry.snap.MinRTT)
AND web100_log_entry.log_time > 1262304000
AND web100_log_entry.log_time < 1262476800
AND connection_spec.client_geolocation.continent_code='EU'
AND connection_spec.client_geolocation.country_code='FR'
查询 2:
SELECT web100_log_entry.connection_spec.remote_ip AS rip,
web100_log_entry.snap.MinRTT AS rttval
FROM [measurement-lab:m_lab.2010_01]
WHERE IS_EXPLICITLY_DEFINED(connection_spec.client_geolocation.continent_code)
AND IS_EXPLICITLY_DEFINED(web100_log_entry.log_time)
AND IS_EXPLICITLY_DEFINED(connection_spec.client_geolocation.country_code)
AND IS_EXPLICITLY_DEFINED(web100_log_entry.snap.MinRTT)
AND web100_log_entry.log_time > 1262304000
AND web100_log_entry.log_time < 1262476800
AND connection_spec.client_geolocation.continent_code='EU'
AND connection_spec.client_geolocation.country_code='FR'
结果 1:
+------------+---------------+
| rttval | rip |
+------------+---------------+
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
+------------+---------------+
结果 2:
+-------------+------------+
| rip | rttval |
+-------------+------------+
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
+-------------+------------+
你这里粘贴的只是第一个显示的结果页,总共有3254299行,而且它们的顺序不同(即使是同一个查询也可能有不同的顺序),因为没有ORDER BY 子句。
我正在使用 Google Big Query 在数据集上执行一些 mysql 类型的查询。这两个查询几乎相同(它们仅在使用 SELECT 检索的 2 列的顺序上有所不同,所有其他 parameters/conditions 都相同)但是当在同一数据库上一个接一个地执行时,它们会给出两个不同的输出.我是 BigQuery 的初学者,也是 MySQL。请帮助。
查询及结果如下
查询 1:
SELECT web100_log_entry.snap.MinRTT AS rttval,
web100_log_entry.connection_spec.remote_ip AS rip
FROM [measurement-lab:m_lab.2010_01]
WHERE IS_EXPLICITLY_DEFINED(connection_spec.client_geolocation.continent_code)
AND IS_EXPLICITLY_DEFINED(web100_log_entry.log_time)
AND IS_EXPLICITLY_DEFINED(connection_spec.client_geolocation.country_code)
AND IS_EXPLICITLY_DEFINED(web100_log_entry.snap.MinRTT)
AND web100_log_entry.log_time > 1262304000
AND web100_log_entry.log_time < 1262476800
AND connection_spec.client_geolocation.continent_code='EU'
AND connection_spec.client_geolocation.country_code='FR'
查询 2:
SELECT web100_log_entry.connection_spec.remote_ip AS rip,
web100_log_entry.snap.MinRTT AS rttval
FROM [measurement-lab:m_lab.2010_01]
WHERE IS_EXPLICITLY_DEFINED(connection_spec.client_geolocation.continent_code)
AND IS_EXPLICITLY_DEFINED(web100_log_entry.log_time)
AND IS_EXPLICITLY_DEFINED(connection_spec.client_geolocation.country_code)
AND IS_EXPLICITLY_DEFINED(web100_log_entry.snap.MinRTT)
AND web100_log_entry.log_time > 1262304000
AND web100_log_entry.log_time < 1262476800
AND connection_spec.client_geolocation.continent_code='EU'
AND connection_spec.client_geolocation.country_code='FR'
结果 1:
+------------+---------------+
| rttval | rip |
+------------+---------------+
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
| 4294967295 | 92.161.77.187 |
+------------+---------------+
结果 2:
+-------------+------------+
| rip | rttval |
+-------------+------------+
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
| 82.233.86.3 | 4294967295 |
+-------------+------------+
你这里粘贴的只是第一个显示的结果页,总共有3254299行,而且它们的顺序不同(即使是同一个查询也可能有不同的顺序),因为没有ORDER BY 子句。