forked from D-Net/dnet-hadoop
8 lines
519 B
SQL
8 lines
519 B
SQL
----------------------------------------------
|
|
-- Re-creating views from final parquet tables
|
|
---------------------------------------------
|
|
|
|
-- Result
|
|
CREATE OR REPLACE VIEW ${stats_db_name}.result as SELECT *, bestlicence as access_mode FROM ${stats_db_name}.publication UNION ALL SELECT *, bestlicence as access_mode FROM ${stats_db_name}.software UNION ALL SELECT *, bestlicence as access_mode FROM ${stats_db_name}.dataset UNION ALL SELECT *, bestlicence as access_mode FROM ${stats_db_name}.otherresearchproduct;
|
|
|