Member since
05-15-2018
34
Posts
0
Kudos Received
2
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1569 | 05-15-2019 02:54 PM |
05-15-2019
02:54 PM
c=a*(lit(1)-b)
... View more
01-16-2019
10:49 PM
@Venkat Use regexp_replace function in hive to replace $ with '' then cast to int. Example: select int(regexp_replace(string("124$"),'\\$',''));
+------+--+
| _c0 |
+------+--+
| 124 |
+------+--+
(or) Starting from Hive-1.3 version use replace function. select int(replace(string("124$"),'$',''));
+------+--+
| _c0 |
+------+--+
| 124 |
+------+--+
... View more