-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Standardize behaviour of CAST into IPv4, IPv6, toIPv4, toIPv6 functions #35240
Merged
kitaisreal
merged 6 commits into
ClickHouse:master
from
kitaisreal:cast-to-ip-address-refactoring
Mar 17, 2022
Merged
Standardize behaviour of CAST into IPv4, IPv6, toIPv4, toIPv6 functions #35240
kitaisreal
merged 6 commits into
ClickHouse:master
from
kitaisreal:cast-to-ip-address-refactoring
Mar 17, 2022
Conversation
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
robot-clickhouse
added
the
pr-bugfix
Pull request with bugfix, not backported by default
label
Mar 12, 2022
@Mergifyio update |
✅ Branch has been successfully updated |
kitaisreal
force-pushed
the
cast-to-ip-address-refactoring
branch
from
March 14, 2022 09:15
1ca6e20
to
36dc7f0
Compare
Avogar
approved these changes
Mar 15, 2022
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
alexey-milovidov
added
the
pr-must-backport
Pull request should be backported intentionally. Use this label with great care!
label
Mar 17, 2022
This was referenced Mar 17, 2022
kitaisreal
added a commit
that referenced
this pull request
Mar 17, 2022
…ae6c7bb4fae0b6bcf83107d0f148e Cherry pick #35240 to 22.2: Standardize behaviour of CAST into IPv4, IPv6, toIPv4, toIPv6 functions
robot-clickhouse
pushed a commit
that referenced
this pull request
Mar 18, 2022
…6, toIPv4, toIPv6 functions
alexey-milovidov
added
pr-backward-incompatible
Pull request with backwards incompatible changes
and removed
backward compatibility
labels
Apr 5, 2022
Felixoid
added
the
pr-backports-created
Backport PRs are successfully created, it won't be processed by CI script anymore
label
Jul 14, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
pr-backports-created
Backport PRs are successfully created, it won't be processed by CI script anymore
pr-backward-incompatible
Pull request with backwards incompatible changes
pr-bugfix
Pull request with bugfix, not backported by default
pr-must-backport
Pull request should be backported intentionally. Use this label with great care!
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Make function
cast(value, 'IPv4')
,cast(value, 'IPv6')
behave same astoIPv4
,toIPv6
functions. Changed behavior of incorrect IP address passed into functionstoIPv4
,toIPv6
, now if invalid IP address passes into this functions exception will be raised, before this function return default value. Added functionsIPv4StringToNumOrDefault
,IPv4StringToNumOrNull
,IPv6StringToNumOrDefault
,IPv6StringOrNull
toIPv4OrDefault
,toIPv4OrNull
,toIPv6OrDefault
,toIPv6OrNull
. FunctionsIPv4StringToNumOrDefault
,toIPv4OrDefault
,toIPv6OrDefault
should be used if previous logic relied onIPv4StringToNum
,toIPv4
,toIPv6
returning default value for invalid address. Added settingcast_ipv4_ipv6_default_on_conversion_error
, if this setting enabled, then IP address conversion functions will behave as before. Closes #22825. Closes #5799. Closes #35156.