2 回答
- 最新
- 投票最多
- 评论最多
1
Hi,
You can calculate the length of the array in Athena using the CARDINALITY
function [1].
Here's the basic syntax:
SELECT CARDINALITY(json_column_name) AS array_length
FROM your_table_name;
Reference:
[1] https://docs.aws.amazon.com/athena/latest/ug/finding-lengths.html
Thanks,
Atul
已回答 7 个月前
Glad that it helped!