Analysis-Services/UsqlScripts/last_available_year/reason.usql

17 lines
444 B
Plaintext
Raw Normal View History

@raw_parsed = EXTRACT child_id int,
_reason_sk string,
_reason_id string,
_reason_desc string,
empty string
FROM "wasb://reason@<blob storage account name>/{*}_{child_id}_100.dat"
USING Extractors.Text(delimiter: '|');
@filtered_results = SELECT _reason_sk,
_reason_id,
_reason_desc
FROM @raw_parsed;
OUTPUT @filtered_results
TO "/last_available_year/reason.csv"
USING Outputters.Csv(outputHeader: true);