update sql query to return distinct pids #301
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
RDGraph
RSAC
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: D-Net/dnet-hadoop#301
Loading…
Reference in New Issue
No description provided.
Delete Branch "distinct_pids_from_openorgs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I updated the sql query from OpenOrgs. Not it should return distinct pids.
The process consuming the PSQL ResultSet expects all the columns to be named according to the naming convention in place. Please re-add the name
pid
for the column you have modified.@ -19,0 +18,4 @@
ARRAY(SELECT DISTINCT pid FROM unnest(array_cat(
array_agg(DISTINCT i.otherid || '###' || i.type || '@@@dnet:pid_types'),
array_agg(DISTINCT idup.otherid || '###' || idup.type || '@@@dnet:pid_types')
)) as t(pid) where pid IS NOT NULL),
@michele.artini The process consuming the PSQL ResultSet expects all the columns to be named according to the naming convention in place. Please re-add the name
pid
for the column you have modified.