Skip to content

Commit

Permalink
fix:transformed path
Browse files Browse the repository at this point in the history
  • Loading branch information
mfonsecaOEF committed Mar 18, 2024
1 parent d114554 commit cbc50ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ CREATE TEMP TABLE IF NOT EXISTS mendoza_stationary_energy_staging (LIKE citywide
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)
\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 './importer/mendoza_arg/stationary_energy_mendoza.csv' WITH (FORMAT CSV, HEADER);

FROM './stationary_energy_mendoza.csv' 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 cbc50ef

Please sign in to comment.