Loading...

The Schema Migrator

A hard Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
hard
Seniority
senior, staff

Problem

The data lake has thousands of records stuck in an old schema, and a batch migration needs to reshape them all according to a list of field-level operations. Write a function that applies rename, add, remove, and type-cast operations to records, supporting nested fields via dot notation.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.