30 строки
804 B
Plaintext
30 строки
804 B
Plaintext
@raw_parsed = EXTRACT child_id int,
|
|
cd_demo_sk string,
|
|
cd_gender string,
|
|
cd_marital_status string,
|
|
cd_education_status string,
|
|
cd_purchase_estimate string,
|
|
cd_credit_rating string,
|
|
cd_dep_count string,
|
|
cd_dep_employed_count string,
|
|
cd_dep_college_count string,
|
|
empty string
|
|
FROM "wasb://customer-demographics@<blob storage account name>/{*}_{child_id}_100.dat"
|
|
USING Extractors.Text(delimiter: '|');
|
|
|
|
@filtered_results = SELECT cd_demo_sk,
|
|
cd_gender,
|
|
cd_marital_status,
|
|
cd_education_status,
|
|
cd_purchase_estimate,
|
|
cd_credit_rating,
|
|
cd_dep_count,
|
|
cd_dep_employed_count,
|
|
cd_dep_college_count
|
|
FROM @raw_parsed
|
|
WHERE child_id BETWEEN 1 AND 100;
|
|
|
|
OUTPUT @filtered_results
|
|
TO "/large_multiple/customer_demographics.csv"
|
|
USING Outputters.Csv(outputHeader: true);
|
|
|