Analysis-Services/UsqlScripts/all_single/ship_mode.usql

23 lines
546 B
Plaintext
Raw Normal View History

@raw_parsed = EXTRACT child_id int,
sm_ship_mode_sk string,
sm_ship_mode_id string,
sm_type string,
sm_code string,
sm_carrier string,
sm_contract string,
empty string
FROM "wasb://ship-mode@<blob storage account name>/{*}_{child_id}_100.dat"
USING Extractors.Text(delimiter: '|');
@filtered_results = SELECT sm_ship_mode_sk,
sm_ship_mode_id,
sm_type,
sm_code,
sm_carrier,
sm_contract
FROM @raw_parsed;
OUTPUT @filtered_results
TO "/all_single/ship_mode.csv"
USING Outputters.Csv(outputHeader: true);