I need to extract data from a file, see code below.
@rows =
EXTRACT booking_date string,
route string,
channel string,
pos string,
venta string,
flight_date string,
ancillary string,
paxs int?
FROM "/ventas/ventas1.csv"
USING Extractors.Text(delimiter:';', silent:true);
@output =
SELECT booking_date,
channel,
Convert.ToDouble(venta.Replace(",", ".")) AS venta,
paxs
FROM @rows;
My problem is that the numbers are in Spanish format, meaning "100,234" instead of "100.234". Does anyone know how to change the format in Extractors.Text, or how transform strings in integers in U-SQL?