U-SQL supports the ANSI CASE
expression as per the release notes here, since Spring 2018. A simple example:
DECLARE @outputFile string = @"\output\output.csv";
@Employees =
SELECT *
FROM (
VALUES
( "w", "Bob", 1999, "31/12/1999", "M" ),
( "Sheena", "Easton", 1999, "31/12/1998", "F" )
) AS Employees(FirstName, LastName, Salary, dob, Gender);
@output =
SELECT FirstName,
LastName,
Salary,
dob,
CASE Gender
WHEN "M" THEN "Male"
WHEN "F" THEN "Female"
END AS Gender
FROM @Employees;
OUTPUT @output
TO @outputFile
USING Outputters.Csv(quoting : false);