I need to be able to get each ‘octet’ out of that value (split it on the ‘.’) I can get the first portion with a case statement:
case
when
substr(ws.ip, 1, 1) == '.'
then
substr(ws.ip, 0, 1)
when
substr(ws.ip, 2, 1) == '.'
then
substr(ws.ip, 0, 2)
else
substr(ws.ip, 0, 3)
end
as ip1
However, after the first part I can’t reference ip1 in any other function to start getting the next part. Anyone have any ideas?
I saw that in the couchbaselabs/query github project. Is there currently any documentation for getting that into couchbaselabs/tuqtng for testing … or am I not looking at the right projects?