[ngrams] fix sql query to return arrays without NULL

This was the case before
parent d89065b9
Pipeline #7972 failed with stages
in 58 minutes and 57 seconds
......@@ -171,7 +171,7 @@ getOccByNgramsOnlyFast cId lId nt = do
)
SELECT
ns.terms,
COALESCE(array_agg(mc.context_id), '{}') as agg
array_remove(array_agg(mc.context_id), NULL) as agg
FROM ns
LEFT JOIN matching_contexts mc ON ns.ngrams_id = mc.ngrams_id
GROUP BY ns.ngrams_id, ns.terms
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment