Задача загрузить строки таблице где поле Record_Type = 'Keyword'
Скрипт
Основной_отчетПодготовка:
LOAD
id as id,
date as Дата,
Record_Type as Record_Type,
Campaign as Campaign,
Max_Bid as Max_Bid,
Keyword_or_Product_Targeting as Keyword_or_Product,
SKU as SKU,
ACoS as ACoS,
IdAccount as IdAccount;
SQL SELECT *
FROM "AmazonFinance".stat.Advertising_Bulksheet;
NoConcatenate Основной_отчет:
LOAD
id,
Дата,
Campaign,
Max_Bid,
Keyword_or_Product,
SKU,
Record_Type as Record_Type2,
ACoS,
IdAccount
Resident
Основной_отчетПодготовка
Where
Record_Type = 'Keyword';
В итоге он грузит все равно все. Таблица очень большая и мне не нужны в памяти строки там где это поле другое.