- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
convert hexadecimal string to bigint
- Labels:
-
Apache Impala
Created on ‎07-15-2018 07:17 AM - edited ‎09-16-2022 06:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I have a table with a field of type string that is a hexadecimal number, like
04191D0A035580
04421352E14B80
040F644A385780
is there a way to convert this string values to bigint values like:
04191D0A035580 --> 1153512419579264
04421352E14B80 --> 1198550669151104
040F644A385780 --> 1142823323195264
thanks in advance for your help
best regards
dcon
Created ‎07-15-2018 07:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
Looking for hive i find the funcion
conv('04191D0A035580', 16,10) that convert the string to string that can be casted to bigint, this function also work in impala, i will use it.
thanks
regards
dcon.
Created ‎07-15-2018 07:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
Looking for hive i find the funcion
conv('04191D0A035580', 16,10) that convert the string to string that can be casted to bigint, this function also work in impala, i will use it.
thanks
regards
dcon.
