-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function to split an IP prefix into subnets #23515
Function to split an IP prefix into subnets #23515
Conversation
presto-main/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java
Outdated
Show resolved
Hide resolved
presto-main/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java
Outdated
Show resolved
Hide resolved
presto-main/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! (docs)
Pull branch, local doc build, looks good. Thanks!
5c5ecef
to
d2ea3ba
Compare
presto-main/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java
Show resolved
Hide resolved
presto-main/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java
Outdated
Show resolved
Hide resolved
presto-main/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java
Outdated
Show resolved
Hide resolved
presto-main/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java
Outdated
Show resolved
Hide resolved
d2ea3ba
to
54101b9
Compare
presto-main/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java
Outdated
Show resolved
Hide resolved
presto-main/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java
Outdated
Show resolved
Hide resolved
54101b9
to
c6e736e
Compare
presto-main/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java
Outdated
Show resolved
Hide resolved
presto-main/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java
Outdated
Show resolved
Hide resolved
presto-main/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java
Outdated
Show resolved
Hide resolved
c6e736e
to
8b7ba4d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Re-review after close and reopening.)
LGTM! (docs)
Pull branch, local doc build, looks good. Thanks!
8b7ba4d
to
92db252
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(rerereview by request)
LGTM! (docs)
Pull branch, local doc build, looks good. Thanks!
presto-main/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java
Outdated
Show resolved
Hide resolved
presto-main/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java
Show resolved
Hide resolved
92db252
to
ca2ef33
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! (docs)
Pull updated branch, new local doc build, looks good. Thanks!
tests and docs reviewer feedback 2 improved documentation converting comment styles feedback changing return type when prefix_length arg is less specific that input prefix reviewer feedback removing whitespace
d73d51d
to
cf05a91
Compare
I was unable to squash and merge this correctly so this branch is FUBAR. Abandoning for new PR. |
Description
This change introduces a function
ip_prefix_subnets
that, given an inputip_prefix
and a subnetprefix_length
, splits the IP prefix into subnets of the input prefix length. The functions return an array of new prefixes of the new input prefix length.This is a complimentary sister function to the
ip_prefix_collapse
function.Motivation and Context
This change addresses issue 23514.
Impact
This change introduces a new user-facing function
ip_prefix_subnets
.Test Plan
Unit tests
mvn clean install -Dtest=TestIpPrefixFunctions -Dmaven.javadoc.skip=true -DskipUI -T1C -fn -pl presto-main
Contributor checklist