convert_hive_to_spark_actions #1

Merged
antonis.lempesis merged 20 commits from convert_hive_to_spark_actions into beta 2024-09-23 13:53:29 +02:00
7 changed files with 13 additions and 10 deletions
Showing only changes of commit 7b7dd32ad5 - Show all commits

View File

@ -1,7 +1,7 @@
set mapred.job.queue.name=analytics;
drop database if exists TARGET cascade;
create database if not exists TARGET;
set mapred.job.queue.name=analytics; /*EOS*/
create table TARGET.result stored as parquet as
select distinct * from (

View File

@ -1,7 +1,7 @@
set mapred.job.queue.name=analytics;
drop database if exists TARGET cascade;
create database if not exists TARGET;
set mapred.job.queue.name=analytics; /*EOS*/
create table TARGET.result stored as parquet as
select distinct * from (

View File

@ -1,7 +1,7 @@
set mapred.job.queue.name=analytics;
drop database if exists TARGET cascade;
create database if not exists TARGET;
set mapred.job.queue.name=analytics; /*EOS*/
create table TARGET.result stored as parquet as
select distinct * from (

View File

@ -1,7 +1,7 @@
set mapred.job.queue.name=analytics;
drop database if exists TARGET cascade;
create database if not exists TARGET;
set mapred.job.queue.name=analytics; /*EOS*/
create table TARGET.result stored as parquet as
select distinct * from (

View File

@ -139,6 +139,8 @@ from lvl1
join lvl3 on lvl3.id=lvl1.id and substr(lvl3.topic, 1, 4)=substr(lvl2.topic, 1, 4)
join lvl4 on lvl4.id=lvl1.id and substr(lvl4.topic, 1, 6)=substr(lvl3.topic, 1, 6); /*EOS*/
DROP TABLE ${stats_db_name}.result_fos_base_tmp purge; /*EOS*/
DROP TABLE IF EXISTS ${stats_db_name}.result_organization purge; /*EOS*/

View File

@ -67,5 +67,5 @@ from ${openaire_db_name}.datasource d lateral view explode(d.collectedfrom) cfro
where d.datainfo.deletedbyinference = false and d.datainfo.invisible=false; /*EOS*/
CREATE OR REPLACE VIEW ${stats_db_name}.datasource_results AS
SELECT datasource AS id, id AS result
SELECT /*+ COALESCE(100) */ datasource AS id, id AS result
FROM ${stats_db_name}.result_datasources; /*EOS*/

View File

@ -150,7 +150,8 @@
</decision>
<kill name="Kill">
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}
${wf:actionData(wf:lastErrorNode())['stackTrace']}]</message>
</kill>
<action name="Step1">