Analysis-Services/UsqlScripts/large_multiple/inventory_76-100.usql

20 lines
538 B
Plaintext
Raw Normal View History

@raw_parsed = EXTRACT child_id int,
nv_date_sk string,
nv_item_sk string,
nv_warehouse_sk string,
nv_quantity_on_hand string,
empty string
FROM "wasb://inventory@<blob storage account name>/{*}_{child_id}_100.dat"
USING Extractors.Text(delimiter: '|');
@filtered_results = SELECT nv_date_sk,
nv_item_sk,
nv_warehouse_sk,
nv_quantity_on_hand
FROM @raw_parsed
WHERE child_id BETWEEN 76 AND 100;
OUTPUT @filtered_results
TO "/large_multiple/inventory_4.csv"
USING Outputters.Csv(outputHeader: true);