Alexandre Guitton
01/19/2023, 1:43 PMID,USER_ID,ORDER_DATE,STATUS
1,1,2018-01-01,returned
2,3,2018-01-02,completed
3,94,2018-01-04,completed
4,50,2018-01-05,completed
5,64,2018-01-05,completedNataly Merezhuk (Airbyte)
01/19/2023, 2:23 PMAlexandre Guitton
01/19/2023, 3:04 PMORDER_DATE is a date in the Airbyte CSV connector:
ID,USER_ID,ORDER_DATE,STATUS
1,1,2018-01-01,returned
2,3,2018-01-02,completed
3,94,2018-01-04,completed
4,50,2018-01-05,completed
5,64,2018-01-05,completed
And currently the table created on Redshift is :
CREATE TABLE tmp_data.jaffle_shop_orders (
id character varying(65535) ENCODE lzo,
status character varying(65535) ENCODE lzo,
user_id character varying(65535) ENCODE lzo,
order_date character varying(65535) ENCODE lzo,
_ab_source_file_url character varying(65535) ENCODE lzo,
_ab_additional_properties super,
_ab_source_file_last_modified timestamp with time zone ENCODE az64,
_airbyte_ab_id character varying(256) ENCODE lzo distkey,
_airbyte_emitted_at timestamp with time zone ENCODE raw,
_airbyte_normalized_at timestamp without time zone ENCODE az64,
_airbyte_jaffle_shop_orders_hashid character varying(32) ENCODE lzo
)
DISTSTYLE AUTO
SORTKEY ( _airbyte_emitted_at );
I would like to have the order date on the redshift side with the type TIMESTAMP if possible.Nataly Merezhuk (Airbyte)
01/20/2023, 1:36 PM