-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ip_prefix_collapse function [7/n] (#11778)
Summary: Given a list of ipaddresses that are either all ipv4 or ipv6, return the minimal CIDR representation. The list cannot compare nulls. This is done by 1. sorting the ipaddress list 2. merging the sorted ranges 3. create the min ipprefix for each range Java implementation: https://github.com/prestodb/presto/blob/9f490e75e905e8d107b3e469cc146dace034ae7c/presto-main/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java#L214 Differential Revision: D65982872
- Loading branch information
1 parent
e274d16
commit 3e8a924
Showing
3 changed files
with
478 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.