SpinTheMic
Pro

Interview practice question

Hard-coded table names in models

Data Engineering · dbt · Beginner

You join a team and see many models selecting directly from database.schema.table names. What problems does this cause and how do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Hard-coded names break environment separation, dev may read or write prod.
  • dbt can't see dependencies, so build order and lineage are wrong.
  • Replace raw tables with source() and dbt tables with ref().
  • Fix incrementally, starting with high-impact models.
  • Add a linter or CI check to stop new hard-coded names.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics