Created 09-04-2018 06:25 AM
Hi All,
I have Hive table with ORC format, an i have some records stored as Null in the table, is there any configuration in hive to Set Null as Empty string while Querying the data ?
Cheers,
MJ
Created 09-06-2018 10:22 PM
I don't think there is any such configuration. You can use CASE statement to achieve this e.g.
SELECT CASE WHEN col is NULL THEN '' ELSE col END from table;
Created 09-17-2018 05:46 AM
Hi @vgarg,
Tanx for your reply, i dont think so case statement would helpful for me, coz i need to make this change at globally across all my systems.
Cheers,
MJ
Created 09-17-2018 05:53 AM