2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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
con risposta 7 mesi fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 9 mesi fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 3 anni fa
Glad that it helped!