vscode-dbt-power-user icon indicating copy to clipboard operation
vscode-dbt-power-user copied to clipboard

New columns added to bottom of yaml file instead of in order

Open trudake opened this issue 10 months ago • 0 comments

Expected behavior

When saving in the documentation editor to an existing yaml file, I expected that the columns would be in the order they're stored in the database.

Actual behavior

Instead, new columns are appended to the bottom of yaml file.

Steps To Reproduce

  1. Have an existing schema.yaml for a dbt model
  2. Add a column to the middle of the model
  3. Run model
  4. In the documentation editor, sync with database
  5. Save to the yaml file

Log output/Screenshots

No response

Operating System

OS Sequoia 15.1.1

dbt version

1.8.7

dbt Adapter

bigquery

dbt Power User version

v0.50.5

Are you willing to submit PR?

  • [X] Yes I am willing to submit a PR!

trudake avatar Jan 08 '25 03:01 trudake