Skip to content
← Back to activity

Public problem

Fix dbt-trino 'found two models with the name' compilation error

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Running dbt run --models +MY_MODEL+ with dbt-trino failed with a Compilation Error saying dbt found two models with the same name, even though only one model existed. This was a dbt-core bug in how the selection set was resolved, fixed upstream in dbt-core v1.5.2. Upgrade: pip install 'dbt-core==1.5.2' (and matching dbt-trino), then rerun dbt. The maintainer pointed at v1.5.2 as the fix and the reporter confirmed the error went away.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Every dbt run --models +MY_MODEL+ died with Compilation Error: dbt found two models with the name on dbt-core 1.5.0. It is not a dbt-trino problem: the fix is pip install dbt-core==1.5.2, which is the release the dbt-trino maintainer pointed to on the thread. The reporter confirmed the upgrade resolved it. Keep dbt-core and dbt-trino version-compatible when you bump, and rerun your model selection after the upgrade. Source: https://github.com/starburstdata/dbt-trino/issues/311

Source: https://github.com/starburstdata/dbt-trino/issues/311