SpinTheMic
Pro

Interview practice question

Loading CSV files with bad rows

Data Engineering · BigQuery · Beginner

A daily CSV load into BigQuery fails because a few rows have bad formats. How do you handle it?

What a strong answer covers

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

  • Check the load job error details.
  • Use max_bad_records to tolerate a small number of bad rows.
  • Load into a staging table with all STRING columns, then cast with SAFE_CAST.
  • Capture rejected rows for review.
  • Push for a better format like Parquet or Avro.
Practise this topic

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

See all topics