Changes

Summary

  1. fix(step22): skip non-parquet tables instead of failing the whole impala copy (details)
Commit a35e6d7273bb9ba082f639643aefa5fb78eef765 by Antonis Lempesis
fix(step22): skip non-parquet tables instead of failing the whole impala copy

"create table ... like parquet '<first file>'" needs a real parquet file. The
Ocean DB stats_ext holds four text tables (foo with CWTS.csv, and
rndgdpexpenditure_new, totalresearchers_new, totalresearchersft_new), so step22
died there (job 0012662, 2026-10-07: "File is not a parquet file:
.../stats_ext.db/foo/CWTS.csv") after dropping stats_ext on Impala, leaving
only the 8 tables created before foo and breaking the stats DB views over
stats_ext (fundref, hrrst, totalresearchers, ...).

Check the PAR1 magic of the chosen file; skip non-parquet tables with a WARN,
leave them out of compute stats and out of the Ocean/Impala entity count check.
Scanned all 27 DBs of the copy list: these four are the only such tables.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The file was modifieddhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster_v2.sh

Summary

  1. fix(step22): skip non-parquet tables instead of failing the whole impala copy (details)
Commit a35e6d7273bb9ba082f639643aefa5fb78eef765 by Antonis Lempesis
fix(step22): skip non-parquet tables instead of failing the whole impala copy

"create table ... like parquet '<first file>'" needs a real parquet file. The
Ocean DB stats_ext holds four text tables (foo with CWTS.csv, and
rndgdpexpenditure_new, totalresearchers_new, totalresearchersft_new), so step22
died there (job 0012662, 2026-10-07: "File is not a parquet file:
.../stats_ext.db/foo/CWTS.csv") after dropping stats_ext on Impala, leaving
only the 8 tables created before foo and breaking the stats DB views over
stats_ext (fundref, hrrst, totalresearchers, ...).

Check the PAR1 magic of the chosen file; skip non-parquet tables with a WARN,
leave them out of compute stats and out of the Ocean/Impala entity count check.
Scanned all 27 DBs of the copy list: these four are the only such tables.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The file was modifieddhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster_v2.sh