/** * Finds the api name given a field name and if none are found then it returns the given input. * * @param input The string to attempt to unalias. * * @return the api name of the column or the original input if no mapping was found. */ public String unApply(String input) { return physicalTableSchema.getLogicalColumnNames(input).stream().findFirst().orElse(input); } }