How to transform IP addresses into geolocation in BigQuery standard SQL?
问题 So I have read https://cloudplatform.googleblog.com/2014/03/geoip-geolocation-with-google-bigquery.html But I was wondering if there was a #standardSQL way of doing it. So far, I have a lot of challenge converting PARSE_IP and NTH() since the suggested changes in the migration docs have limitations. Going from PARSE_IP(contributor_ip) to NET.IPV4_TO_INT64(NET.SAFE_IP_FROM_STRING(contributor_ip)) does not work for IPv6 IP addresses. Going from NTH(1, latitude) lat to latitude[SAFE_ORDINAL(1)]