
Multi-object user attributes in SQL
We now support arrays in user attributes with multiple values in SQL calls using IN()
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
uh got a real little one um this U we have these uh this SP around for a while forever essentially user attributes can take multiple values um and but I'm not actually but they've never really had much use in the uh in SQL when you're end user attribute values because there's not really a place that it makes sense to to do that so we've always taken the first one um so here I've got my uh California and Oregon this value from region multi now uh again in a reactive way uh we have changed this so at least in there kind of one spot in SQL where this makes sense generally if you use one of these in an in Clause uh it does the thing
that you would expect it to so I pop over here and I've got this not my state for my state and it's you know the inl that I expect so that's all are you invoking it to do both or are we like selectively picking both in some cases in one in other cases basically um we know that you're yeah we know that you're in an in clause and so that if it has a multivalue user attribute will will put a list in there otherwise we know that doesn't if you put do not parse in there is it going to blow up then for example oh what will it do um sorry I'm getting deep into a corner here kind of aimlessly but it will do
yes so it did yeah no well I mean it syntactically worked but it did this right it it it didn't know that it was an in Clause so it dropped in the actually it didn't pick the first one it joins them together that's the that's what it so you have to contextually rely on it relies on knowing where you are would it be better to have that sort of throw up some kind of hard error I think you you might like I think it'll be obvious to the user that like that happened and maybe there's some and like it can be useful sorry actually more concretely there are cases where you might want it to do that because you want to make an array and
you want to use some like SQL function to split that and put array it's just that yeah other than the one specification that in Clause there's arrays are not cross dialect and we don't like so we we want to just put that in and then if you have the wherewithal to do something with it you can do something with it otherwise yeah