I am using str_to_map as:-
hive> select str_to_map("A:1,B:1,C:1");
OK
{"C":"1","A":"1","B":"1"}
As you can notice it is returning object of type map < string,string>. I want object of type map. Is there any way out? Can we typecast it in some way to map< string,int>?