<workflowRun _class='org.jenkinsci.plugins.workflow.job.WorkflowRun'><action _class='hudson.model.ParametersAction'><parameter _class='hudson.model.StringParameterValue'><name>PROJECT_REPO</name><value>https://code-repo.d4science.org/OpenAIRE/dhp-graph-stats</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>PROJECT_REPO_BRANCH</name><value>main</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>DEPLOYMENT_ROOT_DIR</name><value>/lib/dnet/PROD</value></parameter></action><action _class='hudson.model.CauseAction'><cause _class='hudson.model.Cause$UserIdCause'><shortDescription>Started by user Antonis Lempesis</shortDescription><userId>antonis.lempesis</userId><userName>Antonis Lempesis</userName></cause></action><action _class='org.jenkinsci.plugins.workflow.libs.LibrariesAction'></action><action></action><action></action><action _class='hudson.plugins.git.util.BuildData'><buildsByBranchName><refsremotesoriginmain _class='hudson.plugins.git.util.Build'><buildNumber>55</buildNumber><marked><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><branch><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><name>refs/remotes/origin/main</name></branch></marked><revision><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><branch><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><name>refs/remotes/origin/main</name></branch></revision></refsremotesoriginmain><refsremotesoriginusage_stats_deployment _class='hudson.plugins.git.util.Build'><buildNumber>28</buildNumber><marked><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><branch><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><name>refs/remotes/origin/usage_stats_deployment</name></branch></marked><revision><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><branch><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><name>refs/remotes/origin/usage_stats_deployment</name></branch></revision></refsremotesoriginusage_stats_deployment></buildsByBranchName><lastBuiltRevision><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><branch><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><name>refs/remotes/origin/main</name></branch></lastBuiltRevision><remoteUrl>gitea@code-repo.d4science.org:OpenAIRE/dhp-graph-stats.git</remoteUrl><scmName></scmName></action><action></action><action _class='org.jenkinsci.plugins.workflow.cps.EnvActionImpl'></action><action _class='hudson.plugins.git.util.BuildData'><buildsByBranchName><refsremotesoriginmain _class='hudson.plugins.git.util.Build'><buildNumber>55</buildNumber><marked><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><branch><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><name>refs/remotes/origin/main</name></branch></marked><revision><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><branch><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><name>refs/remotes/origin/main</name></branch></revision></refsremotesoriginmain><refsremotesoriginmain_202606 _class='hudson.plugins.git.util.Build'><buildNumber>42</buildNumber><marked><SHA1>e3bb05274969795d0cc98c7ad070b0140563ab52</SHA1><branch><SHA1>e3bb05274969795d0cc98c7ad070b0140563ab52</SHA1><name>refs/remotes/origin/main_202606</name></branch></marked><revision><SHA1>e3bb05274969795d0cc98c7ad070b0140563ab52</SHA1><branch><SHA1>e3bb05274969795d0cc98c7ad070b0140563ab52</SHA1><name>refs/remotes/origin/main_202606</name></branch></revision></refsremotesoriginmain_202606><refsremotesoriginusage_stats_deployment _class='hudson.plugins.git.util.Build'><buildNumber>28</buildNumber><marked><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><branch><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><name>refs/remotes/origin/usage_stats_deployment</name></branch></marked><revision><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><branch><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><name>refs/remotes/origin/usage_stats_deployment</name></branch></revision></refsremotesoriginusage_stats_deployment></buildsByBranchName><lastBuiltRevision><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><branch><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><name>refs/remotes/origin/main</name></branch></lastBuiltRevision><remoteUrl>https://code-repo.d4science.org/OpenAIRE/dhp-graph-stats</remoteUrl><scmName></scmName></action><action></action><action></action><action></action><action _class='org.jenkinsci.plugins.displayurlapi.actions.RunDisplayAction'></action><action _class='org.jenkinsci.plugins.pipeline.modeldefinition.actions.RestartDeclarativePipelineAction'></action><action></action><action _class='org.jenkinsci.plugins.workflow.job.views.FlowGraphAction'></action><action></action><action></action><action></action><building>false</building><displayName>#55</displayName><duration>870275</duration><estimatedDuration>426887</estimatedDuration><fullDisplayName>dhp-graph-stats_CD #55</fullDisplayName><id>55</id><keepLog>false</keepLog><number>55</number><queueId>69405</queueId><result>SUCCESS</result><timestamp>1791754729278</timestamp><url>https://jenkins-dnet.d4science.org/user/github/my-views/view/all/job/dhp-graph-stats_CD/55/</url><changeSet _class='hudson.plugins.git.GitChangeSetList'><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceAggTables.sql</affectedPath><affectedPath>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</affectedPath><affectedPath>dhp-sciance-stats/job-override.properties-ant</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><affectedPath>pom.xml</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/updateCache.sh</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/finalizeScianceImpala.sh</affectedPath><affectedPath>dhp-sciance-stats/runOozieWorkfow.sh</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-sciance-stats/job-override.properties-beta</affectedPath><affectedPath>dhp-sciance-stats/pom.xml</affectedPath><affectedPath>dhp-sciance-stats/job-override.properties-prod</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><affectedPath>dhp-sciance-stats/README.md</affectedPath><affectedPath>dhp-sciance-stats/installProject.sh</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/config-default.xml</affectedPath><commitId>51981672c6641da6995d4031fb0c1ee8f8141057</commitId><timestamp>1791294023000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(sciance): standalone dhp-sciance-stats oozie workflow

Extract the sciance stats build from the dhp-stats-update step20 into its own
module/workflow: build sciance stats DB in ocean (ScianceStatsDB), copy
sciance source DB + stats DB + shadow to impala, create the impala shadow DB.
The stats tool cache update step is included but disabled (see README).

Ported from feat/sciance-stats-integration, including the removal of views
over the dropped technology taxonomy tables (sciance_v10).

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-06 16:40:23 +0300</date><id>51981672c6641da6995d4031fb0c1ee8f8141057</id><msg>feat(sciance): standalone dhp-sciance-stats oozie workflow</msg><path><editType>add</editType><file>dhp-sciance-stats/pom.xml</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</file></path><path><editType>add</editType><file>dhp-sciance-stats/installProject.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/updateCache.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/README.md</file></path><path><editType>add</editType><file>dhp-sciance-stats/job-override.properties-ant</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/finalizeScianceImpala.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/job-override.properties-prod</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/config-default.xml</file></path><path><editType>add</editType><file>dhp-sciance-stats/runOozieWorkfow.sh</file></path><path><editType>edit</editType><file>pom.xml</file></path><path><editType>add</editType><file>dhp-sciance-stats/job-override.properties-beta</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceAggTables.sql</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-sciance-stats/README.md</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</affectedPath><commitId>25c9c181816beb94fc9871b571f97ee1c026dae8</commitId><timestamp>1791294581000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): target Spark SQL, follow stats-update copy/shadow logic

- result filter back to dual EXISTS, monitor sql identical to main (the Hive 1.1
  rewrites are not for the repo; test with Hive in a local copy only)
- do not copy shadow DBs to impala (stats-update logic): ocean shadow is created
  by step1, impala shadow by step3

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-06 16:49:41 +0300</date><id>25c9c181816beb94fc9871b571f97ee1c026dae8</id><msg>fix(sciance): target Spark SQL, follow stats-update copy/shadow logic</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</file></path><path><editType>edit</editType><file>dhp-sciance-stats/README.md</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/runOozieWorkfow.sh</affectedPath><commitId>d13032b21200459f049a9cd39b8bccf8ad75ea9e</commitId><timestamp>1791295321000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): run script uses spark-35 profile and sciance-stats source dir

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-06 17:02:01 +0300</date><id>d13032b21200459f049a9cd39b8bccf8ad75ea9e</id><msg>fix(sciance): run script uses spark-35 profile and sciance-stats source dir</msg><path><editType>edit</editType><file>dhp-sciance-stats/runOozieWorkfow.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</affectedPath><commitId>c277e9fbefbfa68a67da64904562a92194c5a2cd</commitId><timestamp>1791323778000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): give the impala copy shell action the impalaCluster HA config

The conf dir Oozie generates for shell actions only knows nameservice1, so the
guard in copyDataToImpalaCluster_v2.sh (and distcp) fail with
"Cannot reach Impala HDFS via hdfs://impalaCluster". Pass the HA properties
in the action configuration. Verified with a throwaway shell workflow.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 00:56:18 +0300</date><id>c277e9fbefbfa68a67da64904562a92194c5a2cd</id><msg>fix(sciance): give the impala copy shell action the impalaCluster HA config</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-promote/runOozieWorkfow.sh</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/promoteCache.sh</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/config-default.xml</affectedPath><affectedPath>dhp-sciance-promote/job-override.properties-beta</affectedPath><affectedPath>dhp-sciance-promote/job-override.properties-ant</affectedPath><affectedPath>dhp-sciance-promote/pom.xml</affectedPath><affectedPath>dhp-sciance-promote/job-override.properties-prod</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/updateProductionViews.sh</affectedPath><affectedPath>pom.xml</affectedPath><affectedPath>dhp-sciance-promote/README.md</affectedPath><commitId>a5d1d2e08cce06f0571c3330222a858f5f7b8274</commitId><timestamp>1791326581000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(sciance): dhp-sciance-promote workflow

New module: promote the versioned sciance stats DB to production on impala
(drop + recreate the production DB as views over it, via the generic
updateProductionViews.sh), followed by a stats tool cache promote step that is
included but disabled (enablePromoteCache=false, see README).

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 01:43:01 +0300</date><id>a5d1d2e08cce06f0571c3330222a858f5f7b8274</id><msg>feat(sciance): dhp-sciance-promote workflow</msg><path><editType>add</editType><file>dhp-sciance-promote/job-override.properties-prod</file></path><path><editType>edit</editType><file>pom.xml</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/updateProductionViews.sh</file></path><path><editType>add</editType><file>dhp-sciance-promote/job-override.properties-beta</file></path><path><editType>add</editType><file>dhp-sciance-promote/pom.xml</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/workflow.xml</file></path><path><editType>add</editType><file>dhp-sciance-promote/job-override.properties-ant</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/config-default.xml</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/promoteCache.sh</file></path><path><editType>add</editType><file>dhp-sciance-promote/README.md</file></path><path><editType>add</editType><file>dhp-sciance-promote/runOozieWorkfow.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><commitId>c1f1ff48fa227412112a7171479271e97e9e6bc4</commitId><timestamp>1791329155000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): materialize organization_type instead of a view over the stats DB

The impala copy of the stats DB can lack organization_type (it was added later),
so the view cannot be created on impala and the copy step dies in its view retry
loop. A small real table makes the sciance DB self-contained.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 02:25:55 +0300</date><id>c1f1ff48fa227412112a7171479271e97e9e6bc4</id><msg>fix(sciance): materialize organization_type instead of a view over the stats DB</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/README.md</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><commitId>d4ce7fce87363aaa2485b3149e14ea5b471ff5bd</commitId><timestamp>1791364226000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): restore the technology taxonomy views

The taxonomy tables are needed after all (stats tool profile, dashboard
methodology page). sciance_v10 contains them again, so create the ten views
over them in the versioned DB.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 12:10:26 +0300</date><id>d4ce7fce87363aaa2485b3149e14ea5b471ff5bd</id><msg>fix(sciance): restore the technology taxonomy views</msg><path><editType>edit</editType><file>dhp-sciance-stats/README.md</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-applyOrgDedup.sql</affectedPath><affectedPath>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><commitId>a8df959b2676aa727575dbafbe49d5d027724019</commitId><timestamp>1791380646000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(sciance): apply the organisation deduplication to the sciance stats DB

New step20-applyOrgDedup.sql, run as phase 2b of ScianceStatsDB (after the
filtered copy of the result_* tables, before the agg tables): result_organization
is remapped to canonical org ids, excluded orgs are dropped and duplicate
(result, org) pairs removed; organization becomes a table with one row per
canonical org (normalised name/type/country) next to the unmapped orgs. The
mapping comes from the new sciance_vN.organization_normalised table, which is
also exposed as a view in the versioned DB.

Checked on a scratch DB with the real data (CAS: 409,969 results before and
after the merge; no merged-away or excluded ids left; organization
508,812 -&gt; 508,795 rows).

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 16:44:06 +0300</date><id>a8df959b2676aa727575dbafbe49d5d027724019</id><msg>feat(sciance): apply the organisation deduplication to the sciance stats DB</msg><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-applyOrgDedup.sql</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>37ed469fc59e410106def6dce79dc2417201c5b2</commitId><timestamp>1791381508000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): skip marker files when picking the schema file for impala tables

Same fix as in dhp-stats-update (copyDataToImpalaCluster_v2.sh is shared code):
the first directory entry can be _SUCCESS, which is not parquet.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 16:58:28 +0300</date><id>37ed469fc59e410106def6dce79dc2417201c5b2</id><msg>fix(sciance): skip marker files when picking the schema file for impala tables</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>1bbaa0547aaacdfa538f980dea0576780b1cb651</commitId><timestamp>1791403119000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): skip non-parquet tables instead of failing the impala copy

Same change as dhp-stats-update (copyDataToImpalaCluster_v2.sh is shared code
and must stay identical): check the PAR1 magic of the schema file and skip text
tables with a warning.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 22:58:39 +0300</date><id>1bbaa0547aaacdfa538f980dea0576780b1cb651</id><msg>fix(sciance): skip non-parquet tables instead of failing the impala copy</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>605e34c4e24355ae72e1e1bf1931f17a474bbcd8</commitId><timestamp>1791409563000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): read the format check from the Ocean file and never skip on a read error

Same correction as dhp-stats-update (the script is shared code and must stay
identical): the Impala datanodes are not readable from every host, so read the
magic bytes from the Ocean copy, fail on unreadable files, ignore empty files.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-08 00:46:03 +0300</date><id>605e34c4e24355ae72e1e1bf1931f17a474bbcd8</id><msg>fix(sciance): read the format check from the Ocean file and never skip on a read error</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step12.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</affectedPath><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</affectedPath><commitId>9dff3b5504eb0e1f9eedeba615716d4c036c0b74</commitId><timestamp>1791667131000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(stats): drop result VIEW before TABLE to avoid Spark AnalysisException on restart

Spark SQL raises AnalysisException on `DROP TABLE IF EXISTS` when the
named object is a VIEW, even when IF EXISTS is specified. On DB name
reuse (e.g. restarting the workflow from step12), `result` is still
present as a VIEW from the previous run, causing the workflow to fail.

Add `DROP VIEW IF EXISTS ${stats_db_name}.result` immediately before
the existing `DROP TABLE IF EXISTS` line in both step7.sql and
step12.sql so the object is removed regardless of its current type.

Update SqlIdempotencyTest to emit a FAIL issue when DROP TABLE IF
EXISTS targets an object that is tracked as a VIEW, surfacing this
class of bug at test time rather than at runtime.

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-11 00:18:51 +0300</date><id>9dff3b5504eb0e1f9eedeba615716d4c036c0b74</id><msg>fix(stats): drop result VIEW before TABLE to avoid Spark AnalysisException on restart</msg><path><editType>edit</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step12.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</affectedPath><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</affectedPath><commitId>813c4df2fa9139ae07102993b89d5ef968b424c0</commitId><timestamp>1791670398000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(stats): harden result DROP ordering and idempotency test

step7: DROP TABLE IF EXISTS before DROP VIEW IF EXISTS so result=TABLE
(left by step16_5 of a prior run) is safely removed before the VIEW
drop, which would throw on a TABLE in Spark even with IF EXISTS.

SqlIdempotencyTest:
- Add CREATE_TEMP_VIEW action; step16 inline temp-view pairs no longer
  produce false-positive FAIL reports.
- Flag DROP_VIEW_IF on TABLE, DROP_TABLE bare on VIEW/TEMP_VIEW, and
  DROP_VIEW bare on TABLE as FAIL (Spark throws on type mismatch even
  with IF EXISTS).
- Change testSafeToResumeFromAnyStep to use the in-progress state
  model: for each step i, initial state = result of running steps
  0..i-1 from empty. This matches actual Oozie retry semantics (all
  prior steps in the current run have already completed) and eliminates
  false positives from the TABLE&lt;-&gt;VIEW lifecycle of result.

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-11 01:13:18 +0300</date><id>813c4df2fa9139ae07102993b89d5ef968b424c0</id><msg>fix(stats): harden result DROP ordering and idempotency test</msg><path><editType>edit</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</file></path></item><kind>git</kind></changeSet><changeSet _class='hudson.plugins.git.GitChangeSetList'><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceAggTables.sql</affectedPath><affectedPath>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</affectedPath><affectedPath>dhp-sciance-stats/job-override.properties-ant</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><affectedPath>pom.xml</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/updateCache.sh</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-sciance-stats/runOozieWorkfow.sh</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/finalizeScianceImpala.sh</affectedPath><affectedPath>dhp-sciance-stats/job-override.properties-beta</affectedPath><affectedPath>dhp-sciance-stats/job-override.properties-prod</affectedPath><affectedPath>dhp-sciance-stats/pom.xml</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-sciance-stats/README.md</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/config-default.xml</affectedPath><affectedPath>dhp-sciance-stats/installProject.sh</affectedPath><commitId>51981672c6641da6995d4031fb0c1ee8f8141057</commitId><timestamp>1791294023000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(sciance): standalone dhp-sciance-stats oozie workflow

Extract the sciance stats build from the dhp-stats-update step20 into its own
module/workflow: build sciance stats DB in ocean (ScianceStatsDB), copy
sciance source DB + stats DB + shadow to impala, create the impala shadow DB.
The stats tool cache update step is included but disabled (see README).

Ported from feat/sciance-stats-integration, including the removal of views
over the dropped technology taxonomy tables (sciance_v10).

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-06 16:40:23 +0300</date><id>51981672c6641da6995d4031fb0c1ee8f8141057</id><msg>feat(sciance): standalone dhp-sciance-stats oozie workflow</msg><path><editType>add</editType><file>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/config-default.xml</file></path><path><editType>add</editType><file>dhp-sciance-stats/job-override.properties-prod</file></path><path><editType>add</editType><file>dhp-sciance-stats/pom.xml</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path><path><editType>edit</editType><file>pom.xml</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/updateCache.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceAggTables.sql</file></path><path><editType>add</editType><file>dhp-sciance-stats/README.md</file></path><path><editType>add</editType><file>dhp-sciance-stats/job-override.properties-ant</file></path><path><editType>add</editType><file>dhp-sciance-stats/runOozieWorkfow.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/job-override.properties-beta</file></path><path><editType>add</editType><file>dhp-sciance-stats/installProject.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/finalizeScianceImpala.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-sciance-stats/README.md</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><commitId>25c9c181816beb94fc9871b571f97ee1c026dae8</commitId><timestamp>1791294581000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): target Spark SQL, follow stats-update copy/shadow logic

- result filter back to dual EXISTS, monitor sql identical to main (the Hive 1.1
  rewrites are not for the repo; test with Hive in a local copy only)
- do not copy shadow DBs to impala (stats-update logic): ocean shadow is created
  by step1, impala shadow by step3

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-06 16:49:41 +0300</date><id>25c9c181816beb94fc9871b571f97ee1c026dae8</id><msg>fix(sciance): target Spark SQL, follow stats-update copy/shadow logic</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</file></path><path><editType>edit</editType><file>dhp-sciance-stats/README.md</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/runOozieWorkfow.sh</affectedPath><commitId>d13032b21200459f049a9cd39b8bccf8ad75ea9e</commitId><timestamp>1791295321000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): run script uses spark-35 profile and sciance-stats source dir

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-06 17:02:01 +0300</date><id>d13032b21200459f049a9cd39b8bccf8ad75ea9e</id><msg>fix(sciance): run script uses spark-35 profile and sciance-stats source dir</msg><path><editType>edit</editType><file>dhp-sciance-stats/runOozieWorkfow.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</affectedPath><commitId>c277e9fbefbfa68a67da64904562a92194c5a2cd</commitId><timestamp>1791323778000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): give the impala copy shell action the impalaCluster HA config

The conf dir Oozie generates for shell actions only knows nameservice1, so the
guard in copyDataToImpalaCluster_v2.sh (and distcp) fail with
"Cannot reach Impala HDFS via hdfs://impalaCluster". Pass the HA properties
in the action configuration. Verified with a throwaway shell workflow.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 00:56:18 +0300</date><id>c277e9fbefbfa68a67da64904562a92194c5a2cd</id><msg>fix(sciance): give the impala copy shell action the impalaCluster HA config</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-promote/runOozieWorkfow.sh</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/promoteCache.sh</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/config-default.xml</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-sciance-promote/job-override.properties-beta</affectedPath><affectedPath>dhp-sciance-promote/job-override.properties-ant</affectedPath><affectedPath>dhp-sciance-promote/pom.xml</affectedPath><affectedPath>dhp-sciance-promote/job-override.properties-prod</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/updateProductionViews.sh</affectedPath><affectedPath>pom.xml</affectedPath><affectedPath>dhp-sciance-promote/README.md</affectedPath><commitId>a5d1d2e08cce06f0571c3330222a858f5f7b8274</commitId><timestamp>1791326581000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(sciance): dhp-sciance-promote workflow

New module: promote the versioned sciance stats DB to production on impala
(drop + recreate the production DB as views over it, via the generic
updateProductionViews.sh), followed by a stats tool cache promote step that is
included but disabled (enablePromoteCache=false, see README).

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 01:43:01 +0300</date><id>a5d1d2e08cce06f0571c3330222a858f5f7b8274</id><msg>feat(sciance): dhp-sciance-promote workflow</msg><path><editType>add</editType><file>dhp-sciance-promote/job-override.properties-ant</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/promoteCache.sh</file></path><path><editType>add</editType><file>dhp-sciance-promote/README.md</file></path><path><editType>add</editType><file>dhp-sciance-promote/job-override.properties-beta</file></path><path><editType>add</editType><file>dhp-sciance-promote/job-override.properties-prod</file></path><path><editType>edit</editType><file>pom.xml</file></path><path><editType>add</editType><file>dhp-sciance-promote/runOozieWorkfow.sh</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/config-default.xml</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/workflow.xml</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/updateProductionViews.sh</file></path><path><editType>add</editType><file>dhp-sciance-promote/pom.xml</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><commitId>c1f1ff48fa227412112a7171479271e97e9e6bc4</commitId><timestamp>1791329155000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): materialize organization_type instead of a view over the stats DB

The impala copy of the stats DB can lack organization_type (it was added later),
so the view cannot be created on impala and the copy step dies in its view retry
loop. A small real table makes the sciance DB self-contained.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 02:25:55 +0300</date><id>c1f1ff48fa227412112a7171479271e97e9e6bc4</id><msg>fix(sciance): materialize organization_type instead of a view over the stats DB</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/README.md</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><commitId>d4ce7fce87363aaa2485b3149e14ea5b471ff5bd</commitId><timestamp>1791364226000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): restore the technology taxonomy views

The taxonomy tables are needed after all (stats tool profile, dashboard
methodology page). sciance_v10 contains them again, so create the ten views
over them in the versioned DB.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 12:10:26 +0300</date><id>d4ce7fce87363aaa2485b3149e14ea5b471ff5bd</id><msg>fix(sciance): restore the technology taxonomy views</msg><path><editType>edit</editType><file>dhp-sciance-stats/README.md</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-applyOrgDedup.sql</affectedPath><affectedPath>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><commitId>a8df959b2676aa727575dbafbe49d5d027724019</commitId><timestamp>1791380646000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(sciance): apply the organisation deduplication to the sciance stats DB

New step20-applyOrgDedup.sql, run as phase 2b of ScianceStatsDB (after the
filtered copy of the result_* tables, before the agg tables): result_organization
is remapped to canonical org ids, excluded orgs are dropped and duplicate
(result, org) pairs removed; organization becomes a table with one row per
canonical org (normalised name/type/country) next to the unmapped orgs. The
mapping comes from the new sciance_vN.organization_normalised table, which is
also exposed as a view in the versioned DB.

Checked on a scratch DB with the real data (CAS: 409,969 results before and
after the merge; no merged-away or excluded ids left; organization
508,812 -&gt; 508,795 rows).

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 16:44:06 +0300</date><id>a8df959b2676aa727575dbafbe49d5d027724019</id><msg>feat(sciance): apply the organisation deduplication to the sciance stats DB</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-applyOrgDedup.sql</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>37ed469fc59e410106def6dce79dc2417201c5b2</commitId><timestamp>1791381508000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): skip marker files when picking the schema file for impala tables

Same fix as in dhp-stats-update (copyDataToImpalaCluster_v2.sh is shared code):
the first directory entry can be _SUCCESS, which is not parquet.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 16:58:28 +0300</date><id>37ed469fc59e410106def6dce79dc2417201c5b2</id><msg>fix(sciance): skip marker files when picking the schema file for impala tables</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>1bbaa0547aaacdfa538f980dea0576780b1cb651</commitId><timestamp>1791403119000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): skip non-parquet tables instead of failing the impala copy

Same change as dhp-stats-update (copyDataToImpalaCluster_v2.sh is shared code
and must stay identical): check the PAR1 magic of the schema file and skip text
tables with a warning.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 22:58:39 +0300</date><id>1bbaa0547aaacdfa538f980dea0576780b1cb651</id><msg>fix(sciance): skip non-parquet tables instead of failing the impala copy</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>605e34c4e24355ae72e1e1bf1931f17a474bbcd8</commitId><timestamp>1791409563000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): read the format check from the Ocean file and never skip on a read error

Same correction as dhp-stats-update (the script is shared code and must stay
identical): the Impala datanodes are not readable from every host, so read the
magic bytes from the Ocean copy, fail on unreadable files, ignore empty files.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-08 00:46:03 +0300</date><id>605e34c4e24355ae72e1e1bf1931f17a474bbcd8</id><msg>fix(sciance): read the format check from the Ocean file and never skip on a read error</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step12.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</affectedPath><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</affectedPath><commitId>9dff3b5504eb0e1f9eedeba615716d4c036c0b74</commitId><timestamp>1791667131000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(stats): drop result VIEW before TABLE to avoid Spark AnalysisException on restart

Spark SQL raises AnalysisException on `DROP TABLE IF EXISTS` when the
named object is a VIEW, even when IF EXISTS is specified. On DB name
reuse (e.g. restarting the workflow from step12), `result` is still
present as a VIEW from the previous run, causing the workflow to fail.

Add `DROP VIEW IF EXISTS ${stats_db_name}.result` immediately before
the existing `DROP TABLE IF EXISTS` line in both step7.sql and
step12.sql so the object is removed regardless of its current type.

Update SqlIdempotencyTest to emit a FAIL issue when DROP TABLE IF
EXISTS targets an object that is tracked as a VIEW, surfacing this
class of bug at test time rather than at runtime.

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-11 00:18:51 +0300</date><id>9dff3b5504eb0e1f9eedeba615716d4c036c0b74</id><msg>fix(stats): drop result VIEW before TABLE to avoid Spark AnalysisException on restart</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step12.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</affectedPath><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</affectedPath><commitId>813c4df2fa9139ae07102993b89d5ef968b424c0</commitId><timestamp>1791670398000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(stats): harden result DROP ordering and idempotency test

step7: DROP TABLE IF EXISTS before DROP VIEW IF EXISTS so result=TABLE
(left by step16_5 of a prior run) is safely removed before the VIEW
drop, which would throw on a TABLE in Spark even with IF EXISTS.

SqlIdempotencyTest:
- Add CREATE_TEMP_VIEW action; step16 inline temp-view pairs no longer
  produce false-positive FAIL reports.
- Flag DROP_VIEW_IF on TABLE, DROP_TABLE bare on VIEW/TEMP_VIEW, and
  DROP_VIEW bare on TABLE as FAIL (Spark throws on type mismatch even
  with IF EXISTS).
- Change testSafeToResumeFromAnyStep to use the in-progress state
  model: for each step i, initial state = result of running steps
  0..i-1 from empty. This matches actual Oozie retry semantics (all
  prior steps in the current run have already completed) and eliminates
  false positives from the TABLE&lt;-&gt;VIEW lifecycle of result.

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-11 01:13:18 +0300</date><id>813c4df2fa9139ae07102993b89d5ef968b424c0</id><msg>fix(stats): harden result DROP ordering and idempotency test</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</file></path></item><kind>git</kind></changeSet><culprit><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></culprit><inProgress>false</inProgress><nextBuild><number>56</number><url>https://jenkins-dnet.d4science.org/user/github/my-views/view/all/job/dhp-graph-stats_CD/56/</url></nextBuild><previousBuild><number>54</number><url>https://jenkins-dnet.d4science.org/user/github/my-views/view/all/job/dhp-graph-stats_CD/54/</url></previousBuild></workflowRun>