update sql query to return distinct pids #301

Merged
claudio.atzori merged 3 commits from distinct_pids_from_openorgs into master 2023-06-27 12:24:48 +02:00
Member

I updated the sql query from OpenOrgs. Not it should return distinct pids.

I updated the sql query from OpenOrgs. Not it should return distinct pids.
claudio.atzori was assigned by michele.artini 2023-06-06 14:10:02 +02:00
michele.debonis was assigned by michele.artini 2023-06-06 14:10:03 +02:00
michele.artini added 1 commit 2023-06-06 14:10:03 +02:00
claudio.atzori requested changes 2023-06-13 11:35:28 +02:00
claudio.atzori left a comment
Owner

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.

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.

@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.
michele.artini added 1 commit 2023-06-13 11:43:17 +02:00
claudio.atzori added 1 commit 2023-06-27 12:24:36 +02:00
claudio.atzori merged commit b93e1541aa into master 2023-06-27 12:24:48 +02:00
claudio.atzori deleted branch distinct_pids_from_openorgs 2023-06-27 12:24:48 +02:00
Sign in to join this conversation.
No description provided.