Substitute DISTINCT ON for query transformation (Postgresql to Redshift)
This is my workaround, that works with Redshift:
select * from (select
id_created, customer_id, call_start, status_prior, status_after,
rank() over (partition by customer_id order by call_start desc) as rank
) t
where rank=1;
It seems to work, however, the processing time is longer, because of the subquery.