I have documents that have the groupIDs value as a CSV string, this query shows the values for example:
Select SPLIT(ci.groupIds, ","), ci.courseInstanceId FROM default:`BvCourseInstance` ci
WHERE ci.groupIds IS NOT NULL
[
{
"$1": [
"325775",
"326059"
],
"courseInstanceId": 118824
},
{
"$1": [
"325775",
"326059"
],
"courseInstanceId": 118826
},
however this query instead of giving me a set of courseInstanceIds I get an empty set.
SELECT ci.courseInstanceId
FROM default:`BvCourseInstance` ci
WHERE "325775" IN (
SELECT SPLIT(ci.groupIds, ","))
{
"results": []
}
Why am I not getting any results???
does not split() yield an array of string values? why am I not finding matches for my constant?