pub fn compile_map(input: &Inventory, spec: &MapSpec) -> Result<Inventory>
transform an ir inventory into another ir inventory under the target schema.