Is there any way to query a specific cell in a mul...
# getting-started
a
Is there any way to query a specific cell in a multi-value column? For instance, in the example below, I know that the first values in each column go together, but I can't seem to query them like "SELECT external_recipient_identifier[0], external_recipient_ipaddress[0]". I did try the map_value function for that email, and it did return me the correct ipaddress, but this seems pretty limited because you have to specify an exact filter for the 2nd parameter.
Copy code
map_value(external_recipient_identifier, 'Théoden@gmail.com', external_recipient_ipaddress)
k
looks like there is
arraySliceString(column, start, end)
a
that's perfect! Thanks @User, any reason that isn't documented?
k
no excuse 🙂
1
a
haha ok, much appreciated tho
m
Apologies, we will get this added in the docs asap.
we have some other array functions that I'll document as well
a
thanks all!
👍 1
m
Other array functions are now documented as well - https://docs.pinot.apache.org/configuration-reference/functions
🙏 1
a
very nice, thanks @User!