I don’t know that that functionality is built-in. There are lookup tables and now “experimental” indexed tables, but they’re for smaller lookup type of functionality. Probably not good for arbitrary keys, as you describe.
You might be able to make something like it using multivalued dimensions and MVD functions like MV_OFFSET_OF and MV_OFFSET to extract the value that follows the key. (If so, though, be aware of the behaviors of MVDs in GROUP BY queries, it may be counterintuitive in some cases.)
I hope that’s helpful.
I thought they’d been around for a while. Did you capitalize? It has to be, eg, MV_OFFSET, not mv_offset. I don’t have 0.19 running right now, but I could check tomorrow if you still have problems.
It doesn’t autocomplete, but it will work. I should maybe have suggested MV_OFFSET_OF. (Same thing, won’t autocomplete, but will work. Eg, I tried
SELECT MV_OFFSET_OF(d6_mvd,‘ro’) FROM dataTest
on a dataset with 0.19, and it worked. (Note it starts counting with 0, and also, if the string isn’t there, will return -1.)
You’re welcome! I hope it’ll be useful!