Skip to content
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

feat: Add ip_prefix function [4/n] #11514

Closed

Conversation

yuandagits
Copy link
Contributor

@yuandagits yuandagits commented Nov 12, 2024

Summary:
Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits.

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from #11407

Differential Revision: D65802211

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 12, 2024
Copy link

netlify bot commented Nov 12, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 1d594da
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/6765888e168e3f000831390e

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

@yuandagits yuandagits marked this pull request as draft November 12, 2024 18:59
yuandagits added a commit to yuandagits/velox that referenced this pull request Nov 12, 2024
Summary:

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits. 

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Differential Revision: D65802211
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

yuandagits added a commit to yuandagits/velox that referenced this pull request Nov 12, 2024
Summary:

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits. 

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Differential Revision: D65802211
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

yuandagits added a commit to yuandagits/velox that referenced this pull request Nov 12, 2024
Summary:

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits. 

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Differential Revision: D65802211
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

yuandagits added a commit to yuandagits/velox that referenced this pull request Nov 12, 2024
Summary:

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits. 

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Differential Revision: D65802211
yuandagits added a commit to yuandagits/velox that referenced this pull request Nov 12, 2024
Summary:

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits. 

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Differential Revision: D65802211
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

yuandagits added a commit to yuandagits/velox that referenced this pull request Nov 12, 2024
Summary:

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits. 

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Differential Revision: D65802211
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

yuandagits added a commit to yuandagits/velox that referenced this pull request Nov 12, 2024
Summary:

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits. 

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Differential Revision: D65802211
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

@yuandagits yuandagits marked this pull request as ready for review November 12, 2024 20:57
yuandagits added a commit to yuandagits/velox that referenced this pull request Nov 12, 2024
Summary:

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits. 

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Differential Revision: D65802211
yuandagits added a commit to yuandagits/velox that referenced this pull request Nov 15, 2024
Summary:

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits. 

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Differential Revision: D65802211
@yuandagits yuandagits changed the title Add ip_prefix function [3/n] feat: Add ip_prefix function [3/n] Nov 20, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

yuandagits added a commit to yuandagits/velox that referenced this pull request Dec 12, 2024
Summary:
Pull Request resolved: facebookincubator#11514

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits.

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Reviewed By: spershin

Differential Revision: D65802211
@yuandagits yuandagits force-pushed the export-D65802211 branch 2 times, most recently from 8f4c540 to 3d27e3a Compare December 12, 2024 22:21
yuandagits added a commit to yuandagits/velox that referenced this pull request Dec 12, 2024
Summary:
Pull Request resolved: facebookincubator#11514

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits.

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Reviewed By: spershin

Differential Revision: D65802211
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

yuandagits added a commit to yuandagits/velox that referenced this pull request Dec 13, 2024
Summary:
Pull Request resolved: facebookincubator#11514

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits.

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Reviewed By: spershin

Differential Revision: D65802211
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

yuandagits added a commit to yuandagits/velox that referenced this pull request Dec 16, 2024
Summary:
Pull Request resolved: facebookincubator#11514

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits.

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Reviewed By: spershin

Differential Revision: D65802211
yuandagits added a commit to yuandagits/velox that referenced this pull request Dec 16, 2024
Summary:
Pull Request resolved: facebookincubator#11514

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits.

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Reviewed By: spershin

Differential Revision: D65802211
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

yuandagits added a commit to yuandagits/velox that referenced this pull request Dec 18, 2024
Summary:

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits. 

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Reviewed By: xiaoxmeng, spershin

Differential Revision: D65802211
yuandagits added a commit to yuandagits/velox that referenced this pull request Dec 19, 2024
Summary:

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits. 

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Reviewed By: xiaoxmeng, spershin

Differential Revision: D65802211
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

Summary:

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits. 

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Reviewed By: xiaoxmeng, spershin

Differential Revision: D65802211
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65802211

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 6779ae7.

athmaja-n pushed a commit to athmaja-n/velox that referenced this pull request Jan 10, 2025
Summary:
Pull Request resolved: facebookincubator#11514

Add ip_prefix function which takes in varchar or ipaddress along with a prefixBits.

Use folly lib to convert the varchar or ipaddress type to folly::IPAddressV6, and then apply the mask.

We return a tuple<int128_t, int8_t> which corresponds to the ipaddress and prefix for IPAddressPrefix type.

Split from facebookincubator#11407

Reviewed By: xiaoxmeng, spershin

Differential Revision: D65802211

fbshipit-source-id: ff0611c7c9aa8fd5057a11d84ecc50ca342ca037
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants