Skip to content

get_models seems broken in 1.8 #172

@sdebruyn

Description

@sdebruyn

Steps to reproduce

  1. Install dbt-core 1.8.0b2 with a compatible adapter
  2. Create a new analysis and paste {{ log('repro: ' ~ codegen.get_models(directory='somedir')) }}
  3. Run dbt run -s your_analysis

Expected results

A log with your models

Actual results

Compilation error 'dict object' has no attribute 'nodes'

System information

packages:
  - package: dbt-labs/codegen
    version: 0.12.1

Which database are you using dbt with?

  • postgres
  • redshift
  • bigquery
  • snowflake
  • other (specify: ____________)

The output of dbt --version:

Core:
  - installed: 1.8.0-b2
  - latest:    1.7.11   - Ahead of latest version!

Plugins:
  - postgres:    1.8.0b1 - Ahead of latest version!
  - timescaledb: 1.8.0b2 - Up to date!

The operating system you're using: macOS

The output of python --version: Python 3.11.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions