Export Contained Level Rollup Tables to Redshift via Zero ETL#74019
Open
sureshc wants to merge 1 commit into
Open
Export Contained Level Rollup Tables to Redshift via Zero ETL#74019sureshc wants to merge 1 commit into
sureshc wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As @code-dot-org/red-team transitions from using tables imported via Database Migration Service to Materialized Views on tables imported via Zero ETL Integration, they've identified 3 tables that currently aren't available via the Zero ETL pipeline:
These tables are populated by a legacy data export cron job that flattens data in MySQL in advance of exporting it via Database Migration Service.
As a short term resolution, define ActiveRecord Model classes for each of these rollup tables and declare
export_to_analyticson each of them.A longer term solution would be to re-implement the rollup logic in
dbton the source tables, but there are a few hundred rows where the data exceeds the 64KB limit in the destination Redshift columns and JSON parsing in Redshift would fail. Until we have time to investigate solutions to that issue, we can export the pre-processed data.Note that this Pull Request also changes the rollup cron job to start executing around the same time that the legacy export via Database Migration Service starts (23:00 UTC) so that when the legacy DMS job refreshes all the Zero ETL Materialized Views as its final step, the
Testing story
Deployment notes
analytics_export:provision_materialized_viewsrake taskaws/dms/tasks.ymlto stop exporting these tables via DMS and deploy by updating theDATA-productionCloudFormation Stack.Privacy and security