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달 전
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
Glad that it helped!