fix(transform): expand SELECT * in cot_positioning, fix src ref in fct_weather_daily

- obt_cot_positioning.sql: replace final SELECT * with explicit column list
  so linter can resolve schema without foundation.fct_cot_positioning in DB
- fct_weather_daily.sql: fix HASH(location_id, src."date") → located."date"
  (cast_and_clean CTE references FROM located, not FROM src)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-02-26 01:32:16 +01:00
parent 9de3a3ba01
commit 690691ea36
2 changed files with 45 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ WITH src AS (
TRY_CAST(located.temperature_2m_max AS DOUBLE) > 35.0 AS is_heat_stress,
COALESCE(TRY_CAST(located.precipitation_sum AS DOUBLE), 0.0) < 1.0 AS is_drought,
TRY_CAST(located.vapour_pressure_deficit_max AS DOUBLE) > 1.5 AS is_high_vpd,
HASH(location_id, src."date") AS hkey,
HASH(location_id, located."date") AS hkey,
filename
FROM located
WHERE