Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
200
Issues
200
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
2acde794
Verified
Commit
2acde794
authored
Oct 09, 2025
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
NgramsByContext.hs
src/Gargantext/Database/Action/Metrics/NgramsByContext.hs
+1
-1
No files found.
src/Gargantext/Database/Action/Metrics/NgramsByContext.hs
View file @
2acde794
...
@@ -171,7 +171,7 @@ getOccByNgramsOnlyFast cId lId nt = do
...
@@ -171,7 +171,7 @@ getOccByNgramsOnlyFast cId lId nt = do
)
)
SELECT
SELECT
ns.terms,
ns.terms,
COALESCE(array_agg(mc.context_id), '{}'
) as agg
array_remove(array_agg(mc.context_id), NULL
) as agg
FROM ns
FROM ns
LEFT JOIN matching_contexts mc ON ns.ngrams_id = mc.ngrams_id
LEFT JOIN matching_contexts mc ON ns.ngrams_id = mc.ngrams_id
GROUP BY ns.ngrams_id, ns.terms
GROUP BY ns.ngrams_id, ns.terms
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment