AltimateAI / vscode-dbt-power-user

This extension makes vscode seamlessly work with dbt™: Auto-complete, preview, column lineage, AI docs generation, health checks, cost estimation etc
https://www.altimate.ai
MIT License
427 stars 84 forks source link

fix: find error when modifying column names #1244

Closed saravmajestic closed 5 days ago

saravmajestic commented 5 days ago

Overview

Problem

If schema.yml has entry only for model and no columns, then getting below error

TypeError: Cannot read properties of undefined (reading 'find')

Solution

use default array if columns are not added in schema.yml

Screenshot/Demo

A picture is worth a thousand words. Please highlight the changes if applicable.

How to test

Checklist

anandgupta42 commented 5 days ago

@saravmajestic Can you add a test for this?

saravmajestic commented 5 days ago

@saravmajestic Can you add a test for this?

yes, will add it