Possible bug with Materialized View refreshes in Redshift

0

Hi,

We are experiencing a bug where materialized views are pulling in 'old' data that does not match the query syntax after refreshing on a schedule for ~4 months.

Context

We have a set of materialized views that pull the data from the past 24 hours from a subset of our data in Redshift.

A part of the materialized view specifies to only pull data from the past 24 hours, which means that when the view refreshes, it needs to recompute from scratch instead of incrementally update.

Here is the syntax for our where statement (this is the same in all the MV's)

where sl.interval_start >= current_timestamp - ' 24 hour':: interval

We noticed recently that some of these materialized views were taking much longer to refresh than normally and had records from over 3 months ago. We dropped the MVs and rebuilt them with the same script & they appear to be working well now, but reporting this in case AWS folks know of a persisting issue.

nacho
질문됨 9달 전202회 조회
1개 답변
0

Firstly thats for using this platform for sharing your findings. This can help others if they face a similar issue.

I request you to open a support ticket to have this investigated and root cause determined.

profile pictureAWS
답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠