Join Operator
Last updated
Was this helpful?
Was this helpful?
<source_table>
| join kind=leftouter ip=(ip_location) on $left.sourceIP == $right.ipaws_alb
| join kind=inner tor=(panther_lookups.public.tor_exit_nodes) on
$left.clientIp == $right.ip
| limit 10aws_alb
| where p_event_time > time.ago(1d)
| join kind=leftouter ip=(panther_lookups.public.ipinfo_location_datalake) on
snowflake.func('panther_lookups.public.ipinfo_to_join_key', $right.joinKey) == snowflake.func('panther_lookups.public.ipinfo_to_join_key', $left.clientIp)
and snowflake.func('panther_lookups.public.ipinfo_to_int', $left.clientIp) between
snowflake.func('panther_lookups.public.ipinfo_to_int', $right.startIP) .. snowflake.func('panther_lookups.public.ipinfo_to_int', $right.endIP)
| project p_event_time, clientIp, city=ip.city, country=ip.country
| limit 10aws_alb
| join kind=inner system_info=(datatable [{"ip":"192.168.1.1", "hostname":"fluffy"}, {"ip":"192.168.1.2", "hostname":"squishy"}]) on
$left.clientIp == $right.ip
| limit 10