Skip to content

Commit

Permalink
fix climate zone index
Browse files Browse the repository at this point in the history
  • Loading branch information
mikivee committed Feb 6, 2025
1 parent d65952d commit 3520805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/megastock/write_databricks_to_bigquery_03.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
# optimize the table by partitioning and clustering
query = f"""
CREATE TABLE `{bq_write_path}_optimized`
PARTITION BY RANGE_BUCKET(climate_zone_int__m, GENERATE_ARRAY(1, {len(climate_zone_mapping)+1}, 1))
PARTITION BY RANGE_BUCKET(climate_zone_int__m, GENERATE_ARRAY(1, {len(CLIMATE_ZONE_TO_INDEX)+1}, 1))
CLUSTER BY heating_fuel__m, geometry_building_type_acs__m, geometry_floor_area__m, vintage__m AS
SELECT *,
FROM `{bq_write_path}`
Expand Down

0 comments on commit 3520805

Please sign in to comment.