I want to know the maximum length a particular string column is taking. I tried taking the approach mentioned here: how to get the max size used by a field in table, but that did not work in Hive.
In that example they use len
, use length
instead:
select max(length(mycolumn)) from mytable;
This works fine in hive QL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With