Skip to content

Commit

Permalink
Merge pull request #46 from recogito/dl/139_document_metadata
Browse files Browse the repository at this point in the history
#139 - Documents metadata
  • Loading branch information
lwjameson authored Jan 9, 2025
2 parents c00c98a + d650290 commit d9ef470
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ SELECT documents.id AS document_id,
)) AS meta
FROM public.documents
CROSS JOIN json_each_text(documents.meta_data->'meta') AS x
WHERE x.value IS NOT NULL
WHERE json_typeof(documents.meta_data->'meta') = 'object'
AND x.value IS NOT NULL
AND x.value != ''
GROUP BY documents.id
),
Expand Down

0 comments on commit d9ef470

Please sign in to comment.