SpinTheMic
Pro

Interview practice question

Seed dropping leading zeros

Data Engineering · dbt · Beginner

A seed file with postal codes like 01234 loads as 1234. How do you fix it?

What a strong answer covers

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

  • dbt infers column types for seeds and treated the codes as numbers.
  • Set column_types for that column to a string type in the seed config.
  • Run dbt seed --full-refresh to recreate the table with the new type.
  • Check other seeds for similar type issues.
  • Add an accepted format test if needed.
Practise this topic

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

See all topics