Merge pull request 'Fixing hardcoded reference to main openAIRE graph db' (#10) from spyros/dnet-hadoop:fixes_for_stats_wf into master

This commit is contained in:
Claudio Atzori 2020-05-10 12:24:48 +02:00
commit 7605be5306
1 changed files with 1 additions and 1 deletions

View File

@ -1,2 +1,2 @@
DROP TABLE IF EXISTS ${stats_db_name}.datasource_languages; DROP TABLE IF EXISTS ${stats_db_name}.datasource_languages;
CREATE TABLE ${stats_db_name}.datasource_languages AS SELECT substr(d.id, 4) as id, langs.languages as language from openaire.datasource d LATERAL VIEW explode(d.odlanguages.value) langs as languages; CREATE TABLE ${stats_db_name}.datasource_languages AS SELECT substr(d.id, 4) as id, langs.languages as language from ${openaire_db_name}.datasource d LATERAL VIEW explode(d.odlanguages.value) langs as languages;