-
Notifications
You must be signed in to change notification settings - Fork 79
Dashboard As Code for Reconcile #768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
14b031c
init
sundarshankar89 1e11205
Merge branch 'main' into feature/lsql_dashboard
sundarshankar89 20dde6b
fix pom
sundarshankar89 a8d4835
Renamed Files
sundarshankar89 dffb4db
Enhancement
sundarshankar89 a28d55a
intermediate commit
sundarshankar89 bcc21b5
intermediate commit
sundarshankar89 387290c
test case fixes
sundarshankar89 9e6d590
Add Recon dashboard tiles
bishwajit-db 8ca71f9
Add Aggregate Recon dashboard tiles
bishwajit-db 3bbd158
Merge branch 'main' into feature/lsql_dashboard
bishwajit-db 9d27325
Resolve review comments
bishwajit-db 202217c
Merge branch 'main' into feature/lsql_dashboard
bishwajit-db File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
1 change: 0 additions & 1 deletion
1
...databricks/labs/remorph/resources/reconcile/dashboards/Remorph-Reconciliation.lvdash.json
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...cile/dashboards/aggregate_reconciliation_metrics/00_0_aggregate_recon_header.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Aggregates Reconcile Table Metrics | ||
| ### It provides the following information: | ||
|
|
||
| * Mismatch | ||
| * Missing in Source | ||
| * Missing in Target |
5 changes: 5 additions & 0 deletions
5
.../resources/reconcile/dashboards/aggregate_reconciliation_metrics/01_0_recon_id.filter.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| columns: | ||
| - recon_id | ||
| - dd_recon_id | ||
| type: MULTI_SELECT | ||
| title: Recon Id |
4 changes: 4 additions & 0 deletions
4
...ources/reconcile/dashboards/aggregate_reconciliation_metrics/01_1_source_table.filter.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| columns: | ||
| - source_table | ||
| type: MULTI_SELECT | ||
| title: Source Table Name |
4 changes: 4 additions & 0 deletions
4
...ources/reconcile/dashboards/aggregate_reconciliation_metrics/02_0_target_table.filter.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| columns: | ||
| - target_table | ||
| type: MULTI_SELECT | ||
| title: Target Table Name |
4 changes: 4 additions & 0 deletions
4
...sources/reconcile/dashboards/aggregate_reconciliation_metrics/02_1_source_type.filter.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| columns: | ||
| - source_type | ||
| type: MULTI_SELECT | ||
| title: Source Type |
4 changes: 4 additions & 0 deletions
4
...sources/reconcile/dashboards/aggregate_reconciliation_metrics/03_0_executed_by.filter.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| columns: | ||
| - executed_by | ||
| type: MULTI_SELECT | ||
| title: Executed by |
4 changes: 4 additions & 0 deletions
4
...esources/reconcile/dashboards/aggregate_reconciliation_metrics/03_1_started_at.filter.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| columns: | ||
| - start_ts | ||
| title: Started At | ||
| type: DATE_RANGE_PICKER |
46 changes: 46 additions & 0 deletions
46
...es/reconcile/dashboards/aggregate_reconciliation_metrics/04_0_aggregate_summary_table.sql
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| /* --title 'Aggregates Summary Table' --width 6 --height 6 */ | ||
| SELECT | ||
| main.recon_id, | ||
| main.source_type, | ||
| main.source_table.`catalog` AS source_catalog, | ||
| main.source_table.`schema` AS source_schema, | ||
| main.source_table.table_name AS source_table_name, | ||
| IF( | ||
| ISNULL(source_catalog), | ||
| CONCAT_WS('.', source_schema, source_table_name), | ||
| CONCAT_WS( | ||
| '.', | ||
| source_catalog, | ||
| source_schema, | ||
| source_table_name | ||
| ) | ||
| ) AS source_table, | ||
| main.target_table.`catalog` AS target_catalog, | ||
| main.target_table.`schema` AS target_schema, | ||
| main.target_table.table_name AS target_table_name, | ||
| CONCAT_WS( | ||
| '.', | ||
| target_catalog, | ||
| target_schema, | ||
| target_table_name | ||
| ) AS target_table, | ||
| UPPER(rules.rule_info.agg_type) || CONCAT('(', rules.rule_info.agg_column, ')') AS aggregate_column, | ||
| rules.rule_info.group_by_columns, | ||
| metrics.run_metrics.status AS status, | ||
| metrics.run_metrics.exception_message AS exception, | ||
| metrics.recon_metrics.missing_in_source AS missing_in_source, | ||
| metrics.recon_metrics.missing_in_target AS missing_in_target, | ||
| metrics.recon_metrics.mismatch AS mismatch, | ||
| metrics.run_metrics.run_by_user AS executed_by, | ||
| main.start_ts AS start_ts, | ||
| main.end_ts AS end_ts | ||
| FROM | ||
| remorph.reconcile.main main | ||
| INNER JOIN remorph.reconcile.aggregate_metrics metrics | ||
| INNER JOIN remorph.reconcile.aggregate_rules rules | ||
| ON main.recon_table_id = metrics.recon_table_id | ||
| AND rules.rule_id = metrics.rule_id | ||
| ORDER BY | ||
| metrics.inserted_ts DESC, | ||
| main.recon_id, | ||
| main.target_table.table_name |
2 changes: 2 additions & 0 deletions
2
...oards/aggregate_reconciliation_metrics/05_0_aggregate_recon_drilldown_header.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Drill Down | ||
| ### The Aggregates Reconcile details table contains all the sample records information of mismatches and missing entries. |
5 changes: 5 additions & 0 deletions
5
.../resources/reconcile/dashboards/aggregate_reconciliation_metrics/06_0_recon_id.filter.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| columns: | ||
| - dd_recon_id | ||
| type: MULTI_SELECT | ||
| title: Recon Id | ||
| width: 2 |
5 changes: 5 additions & 0 deletions
5
.../resources/reconcile/dashboards/aggregate_reconciliation_metrics/06_1_category.filter.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| columns: | ||
| - dd_recon_type | ||
| type: MULTI_SELECT | ||
| title: Category | ||
| width: 2 |
5 changes: 5 additions & 0 deletions
5
...rces/reconcile/dashboards/aggregate_reconciliation_metrics/06_2_aggregate_type.filter.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| columns: | ||
| - dd_aggregate_type | ||
| type: MULTI_SELECT | ||
| title: Aggregate Type | ||
| width: 2 |
4 changes: 4 additions & 0 deletions
4
...ources/reconcile/dashboards/aggregate_reconciliation_metrics/07_0_target_table.filter.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| columns: | ||
| - dd_target_table | ||
| type: MULTI_SELECT | ||
| title: Target Table Name |
4 changes: 4 additions & 0 deletions
4
...ources/reconcile/dashboards/aggregate_reconciliation_metrics/07_1_source_table.filter.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| columns: | ||
| - dd_source_table | ||
| type: MULTI_SELECT | ||
| title: Source Table Name |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.