forked from D-Net/dnet-hadoop
Merge branch 'master' of https://code-repo.d4science.org/D-Net/dnet-hadoop
This commit is contained in:
commit
5e5e32cb48
|
@ -43,7 +43,7 @@
|
||||||
</property>
|
</property>
|
||||||
</parameters>
|
</parameters>
|
||||||
|
|
||||||
<start to="ResetWorkingPath"/>
|
<start to="ImportODFEntitiesFromMongoDB"/>
|
||||||
|
|
||||||
|
|
||||||
<kill name="Kill">
|
<kill name="Kill">
|
||||||
|
|
|
@ -28,15 +28,17 @@ SELECT
|
||||||
p.summary AS summary,
|
p.summary AS summary,
|
||||||
p.currency AS currency,
|
p.currency AS currency,
|
||||||
p.totalcost AS totalcost,
|
p.totalcost AS totalcost,
|
||||||
p.fundedamount AS fundedamount,
|
p.fundedamount AS fundedamount,
|
||||||
dc.id AS collectedfromid,
|
dc.id AS collectedfromid,
|
||||||
dc.officialname AS collectedfromname,
|
dc.officialname AS collectedfromname,
|
||||||
ctc.code || '@@@' || ctc.name || '@@@' || cts.code || '@@@' || cts.name AS contracttype,
|
p.contracttype || '@@@' || p.contracttypename || '@@@' || p.contracttypescheme || '@@@' || p.contracttypescheme AS contracttype,
|
||||||
pac.code || '@@@' || pac.name || '@@@' || pas.code || '@@@' || pas.name AS provenanceaction,
|
pac.code || '@@@' || pac.name || '@@@' || pas.code || '@@@' || pas.name AS provenanceaction,
|
||||||
array_agg(DISTINCT i.pid || '###' || i.issuertype) AS pid,
|
array_agg(DISTINCT i.pid || '###' || i.issuertype) AS pid,
|
||||||
array_agg(DISTINCT s.name || '###' || sc.code || '@@@' || sc.name || '@@@' || ss.code || '@@@' || ss.name) AS subjects,
|
array_agg(DISTINCT s.name || '###' || sc.code || '@@@' || sc.name || '@@@' || ss.code || '@@@' || ss.name) AS subjects,
|
||||||
array_agg(DISTINCT fp.path) AS fundingtree
|
array_agg(DISTINCT fp.path) AS fundingtree
|
||||||
|
|
||||||
FROM projects p
|
FROM projects p
|
||||||
|
|
||||||
LEFT OUTER JOIN class pac ON (pac.code = p.provenanceactionclass)
|
LEFT OUTER JOIN class pac ON (pac.code = p.provenanceactionclass)
|
||||||
LEFT OUTER JOIN scheme pas ON (pas.code = p.provenanceactionscheme)
|
LEFT OUTER JOIN scheme pas ON (pas.code = p.provenanceactionscheme)
|
||||||
|
|
||||||
|
@ -54,9 +56,6 @@ SELECT
|
||||||
LEFT OUTER JOIN class sc ON (sc.code = s.semanticclass)
|
LEFT OUTER JOIN class sc ON (sc.code = s.semanticclass)
|
||||||
LEFT OUTER JOIN scheme ss ON (ss.code = s.semanticscheme)
|
LEFT OUTER JOIN scheme ss ON (ss.code = s.semanticscheme)
|
||||||
|
|
||||||
LEFT OUTER JOIN class ctc ON (ctc.code = p.contracttypeclass)
|
|
||||||
LEFT OUTER JOIN scheme cts ON (cts.code = p.contracttypescheme)
|
|
||||||
|
|
||||||
GROUP BY
|
GROUP BY
|
||||||
p.id,
|
p.id,
|
||||||
p.code,
|
p.code,
|
||||||
|
@ -87,4 +86,4 @@ SELECT
|
||||||
dc.id,
|
dc.id,
|
||||||
dc.officialname,
|
dc.officialname,
|
||||||
pac.code, pac.name, pas.code, pas.name,
|
pac.code, pac.name, pas.code, pas.name,
|
||||||
ctc.code, ctc.name, cts.code, cts.name;
|
p.contracttype , p.contracttypename, p.contracttypescheme;
|
Loading…
Reference in New Issue