I can add logic to infer it in the YARN case