glue_get_plan function

Gets code to perform a specified mapping