Skip to content

Commit

Permalink
fix:file path
Browse files Browse the repository at this point in the history
  • Loading branch information
mfonsecaOEF committed Mar 18, 2024
1 parent b524793 commit 7940b7d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ TRUNCATE mendoza_stationary_energy_staging;
-- Load the staging table from the downloaded file
COPY mendoza_stationary_energy_staging (year, activity_name, activity_value, activity_units, "GPC_refno", gas_name, emission_factor_value, emission_factor_units, emissions_value, emissions_units, city_name, source_name, temporal_granularity, locode, id)

-- FROM '/opt/airflow/data/stationary_energy_mendoza.csv';
FROM :file_path DELIMITER ';' CSV HEADER;
FROM './stationary_energy_mendoza.csv' DELIMITER ',' CSV HEADER;

-- Update the main table with the staging table
INSERT INTO citywide_emissions (year, activity_name, activity_value, activity_units, "GPC_refno", gas_name, emission_factor_value, emission_factor_units, emissions_value, emissions_units, city_name, source_name, temporal_granularity, locode, id)
Expand Down

0 comments on commit 7940b7d

Please sign in to comment.