Feat/migrate xg3 - #134
Draft
droomelotdegendt wants to merge 2 commits into
Draft
Conversation
Extract DWH specific query logic into separate function to prepare for DWH migration
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.
Goal
Migrate function
get_xg3to new data warehouse 'W0002_10_Watina'.The table structure of the new DWH is slightly different, therefore not only the table names but the entire query logic is altered.
Key changes
build_xg3_queryto separate all DWH query logicvwDimMeetpunt-->DimMeetpunt)ssrs_Precalcfor the new fact tableFactBRPeilMetingJaarIsHydroYear == 1to exclude calendaryearsDimParameterSetinto query logic and filter table based on the input parameterstruncated(IsAfgetopt) andwith_estimated(IsEstimated)truncatedandwith_estimatedtoFALSEIsEstimatedonly has valuesFALSE--> otherwise nothing would be selectedFALSE? Is this correct (see section Open questions)?Open questions
truncatedandis_estimated?DimParameterSet?Migration checks
To verify the code changes, the DWH migration snapshot were compared before and after migration (see the testing README for more information), but the output has some changes. Extra check necessary from someone with business knowledge.
Note: to only check the DWH query changes, look at feat(get_xg3): migrate to new DWH 'W0002_10_WATINA' separately