Loading...
The Schema Differ
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- mid, senior
Problem
Schema drift between staging and production keeps breaking the nightly load. The governance team wants an automated diff. Write a function that takes two schemas (lists of column dicts with 'name' and 'type') and returns what was added, removed, and which columns changed type.
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.