MODEL (
  name raw.psd_alldata,
  kind FULL,
  grain ( commodity_code, country_code, market_year, calendar_year, month, attribute_id,unit_id ),
  start '2006-08-01',
  cron '@daily',
  columns (
    commodity_code        varchar, 
    commodity_description varchar,
    country_code          varchar,
    country_name          varchar,
    market_year           varchar,
    calendar_year         varchar,
    month                 varchar,
    attribute_id          varchar,
    attribute_description varchar,
    unit_id               varchar,
    unit_description      varchar,
    value                 varchar,
    filename		  varchar
)
);
SELECT *
 FROM read_csv('zip://extract/psdonline/src/psdonline/data/**/*.zip/*.csv', header=true, union_by_name=true, filename=true, names = ['commodity_code', 'commodity_description', 'country_code', 'country_name', 'market_year', 'calendar_year', 'month', 'attribute_id', 'attribute_description', 'unit_id', 'unit_description', 'value'], all_varchar=true)
