Yesterday's batch and today's do not have the same columns. Before the load runs, the pipeline wants to know exactly what changed — and wants to stay quiet when nothing did.
before — a list of (column_name, type_name)after — the same, for the newer batchColumn names are unique within a batch. The two lists are not necessarily in the same order.
A list of (column_name, change), where change is one of:
'ADDED' — in after only'REMOVED' — in before only'TYPE_CHANGED' — in both, with a different typeOrder is not graded.
SELECT that lists its columns in a different order has not drifted, and reporting that it has is the false alarm that gets this check switched off.after[["id", "int"], ["email", "string"]]
before[["id", "int"], ["name", "string"]]
[["name", "REMOVED"], ["email", "ADDED"]]
after[["id", "int"], ["name", "string"]]
before[["id", "int"], ["name", "string"]]
Community-reported interview topic. Not an official company question and no affiliation is implied.
Run against the public tests, or submit to score against all of them.