int64_to_ipv4

int64_to_ipv4(int: int64) -> string

Converts integer-encoded IPv4 addresses to dotted-quad notation.

Given an integer that represents an IPv4 address in big-endian (network) byte order, return the corresponding dotted-quad representation as a string. Returns null if the input number is negative or too large.

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

make_col ipint:int64_to_ipv4(ipint)

Assuming there's an integer input representing an IPv4 address in big-endian (network) byte order, return dotted-quad string version of that address.

ipint (input)ipstr (output)
-1null
00.0.0.0
1347430448.8.4.4
16777216110.0.0.1
2130706433127.0.0.1
2147549699128.1.2.3
2887647747172.30.2.3
3232235523192.168.0.3
3355509251200.1.2.3
4294967295255.255.255.255
4294967296null