Repository navigation
Commit ebfd8f6
committed
fix(dbt): return lists and scalars from fromyaml
The fromyaml builtin wrapped the parsed document in dict(), so YAML
whose top level is not a mapping was mishandled: a block-style list
raised an uncaught ValueError, and a flow-style list or a scalar was
silently returned as None. dbt returns the parsed value as is.
sqlmesh.utils.yaml.load already returns plain Python objects, so return
its result directly. Mappings are unaffected.
Fixes #6137
Signed-off-by: JanakiRamChittineni <341781521+raams95@users.noreply.github.com>1 parent cc8d8b0 commit ebfd8f6
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1792 | 1792 | | |
1793 | 1793 | | |
1794 | 1794 | | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
1795 | 1801 | | |
1796 | 1802 | | |
1797 | 1803 | | |
| |||
0 commit comments