You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/01/29 18:09:27 UTC

[GitHub] [druid] smit-aterlo opened a new issue #10817: Add IPv6 SQL Functions

smit-aterlo opened a new issue #10817:
URL: https://github.com/apache/druid/issues/10817


   ### Motivation
   
   Druid already has IPv4 Functions as follow:
   
   - IPV4_MATCH: Check if IP address belongs to a subnet
   - IPV4_PARSE: Convert string IP address to integer
   - IPV4_STRINGIFY: Convert integer IP address to string
   
   So adding IPv6 Functions makes it more usable with networking databases.
   
   ### Proposed changes
   
   Adding IPv6 Function for SQL as follow:
   
   - IPV6_MATCH: Check if IP address belongs to a subnet
   
   Not adding function to convert into number as IPv6 represents 128bits.
   
   ### Rationale
   
   The approach is achieving this by using the library https://github.com/janvanbesien/java-ipv6 as `org.apache.commons.net.util.SubnetUtils` does not provide IPv6 support. I can help to achieve this functionality. If you have any better library to use please suggest.
   
   Thank you


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org