I need select statement format for cloudera impala to convert hexadecimal to ip address.
Suppose a hexadecimal number is given (as shown below). How to convert it into impala with select statement like:-
A.59.FC.6
I need select statement format for cloudera impala to convert hexadecimal to ip address.
Suppose a hexadecimal number is given (as shown below). How to convert it into impala with select statement like:-
A.59.FC.6
Copyright © 2021 Jogjafile Inc.
You could do this in Hive using
split
to split your string andconv
to convert from base 16 to base 10; unfortunately although Impala does supportconv
, it doesn't seem that Impala has asplit
UDF built in, so if you're stuck with Impala you might have to write your own :(Hive code: