I have the following query:
SELECT * FROM Concerts
WHERE (ARRAY_LENGTH(TicketPrices) > 0 AND TicketPrices[OFFSET(0)] IS NOT NULL);
and I got:
ERROR: OUT_OF_RANGE: Array index 0 is out of bounds.
Why is the 2nd part being evaluated even when the first part is not true? How do I check if the array has one element with certain value?