hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Tatarinov <i...@decide.com>
Subject string to int conversion (with leading zeros)
Date Thu, 11 Apr 2013 18:23:40 GMT
Hi all,

I need to convert a string attribute that contains ints with occasional
leading zeroes. Unfortunately, I can't simply cast() as Hive will try to
parse those numbers as octals. Is a regex the only solution?

thanks!
igor
decide.com

Mime
View raw message