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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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 77de4ac
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/675bad10e1a3be0009c97d14

@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 11, 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

Differential Revision: D65802211
yuandagits added a commit to yuandagits/velox that referenced this pull request Dec 11, 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

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 11, 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

Differential Revision: D65802211
Copy link
Contributor

@spershin spershin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fuzzer failure is due to a bug.

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

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

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 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
…oad the correct commit data.

Differential Revision: D67159266
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

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

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants