In Athena, what is the most efficient way to fill null values with 0?
I think I can use Case
statement, but I am also curious if there are other ways to do it.
In Athena, what is the most efficient way to fill null values with 0?
I think I can use Case
statement, but I am also curious if there are other ways to do it.
We can use coalesce
, here is Presto documentation on conditions which is what Athena is built on.
select coalesce(myColumn, 0) from my_table_name