I need load some text from one file and choose specific records from another where one of second file columns is equalt to text loaded from first file.
I'm trying with something like that but actually it doesn't work.
@countryName =
EXTRACT City string
FROM "/TestCatalog/test.txt"
USING Extractors.Text();
@result =
SELECT CityName,
Temperature,
MeasurmentDate
FROM @readEmployee
WHERE CityName IN(@countryName);
What is the best way to pass some parameters to where expression ( readed from another file in azure data lake ) ?
Variables in U-SQL which are assigned to with
EXTRACT
orSEELCT
are rowsets, rather than scalar variables. Therefore useSEMIJOIN
to do this, for example: