Last active
July 29, 2019 18:18
-
-
Save sdstrowes/8355f2d8b1ff69c0bfd1841ff97f6d9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with filtered_table as ( | |
select p.* | |
from prod.traceroute_atlas_prod as p, unnest(hops) as h, unnest(resultHops) as rh | |
where ( | |
startTime > "2019-07-01" and | |
startTime < "2019-07-02" | |
) | |
and ( | |
rh.from = "170.238.232.149" or | |
rh.from = "170.238.232.150" or | |
rh.from = "170.238.232.145" or | |
rh.from = "170.238.232.146" | |
) | |
) | |
select * from filtered_table |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with filtered_table as ( | |
select p.* | |
from prod.traceroute_atlas_prod as p, unnest(hops) as h, unnest(resultHops) as rh | |
where ( | |
startTime > "2019-07-01" and | |
startTime < "2019-07-02" | |
) | |
and ( | |
rh.from = "170.238.232.149" or | |
rh.from = "170.238.232.150" or | |
rh.from = "170.238.232.145" or | |
rh.from = "170.238.232.146" | |
) | |
) | |
select ANY_VALUE(filtered_table).* | |
from filtered_table | |
group by to_json_string(filtered_table) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment