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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user