ccao-data / data-architecture

Codebase for CCAO data infrastructure construction and management
https://ccao-data.github.io/data-architecture/
5 stars 3 forks source link

Move conditional for nearest dist macro to CTE #297

Closed dfsnow closed 5 months ago

dfsnow commented 5 months ago

Per @jeancochrane's example in #295, I've refactored the distance to nearest geometry macro to use a CTE instead of a conditional passed as a macro argument. This is significantly simpler and more intuitive in my opinion while getting the same results.