2017-07-19 05:47:58 +08:00
|
|
|
@raw_parsed = EXTRACT child_id int,
|
|
|
|
b_income_band_sk string,
|
|
|
|
b_lower_bound string,
|
|
|
|
b_upper_bound string,
|
|
|
|
empty string
|
2017-08-03 05:06:14 +08:00
|
|
|
FROM "wasb://income-band@<blob storage account name>/{*}_{child_id}_100.dat"
|
2017-07-19 05:47:58 +08:00
|
|
|
USING Extractors.Text(delimiter: '|');
|
|
|
|
|
|
|
|
@filtered_results = SELECT b_income_band_sk,
|
|
|
|
b_lower_bound,
|
|
|
|
b_upper_bound
|
|
|
|
FROM @raw_parsed
|
|
|
|
ORDER BY child_id ASC
|
|
|
|
FETCH 100 ROWS;
|
|
|
|
|
|
|
|
OUTPUT @filtered_results
|
|
|
|
TO "/modelling/income_band.csv"
|
|
|
|
USING Outputters.Csv(outputHeader: true);
|
|
|
|
|