Created
January 7, 2016 21:19
-
-
Save githoov/87fd7472402081004ab7 to your computer and use it in GitHub Desktop.
Redshift Load Errors
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
| - explore: etl_errors | |
| label: 'ETL Errors' | |
| hidden: true | |
| - view: etl_errors | |
| derived_table: | |
| sql: | | |
| select distinct errors.starttime as error_time | |
| , detail.filename as file_name | |
| , errors.err_reason | |
| from stl_loaderror_detail as detail, stl_load_errors as errors | |
| where detail.query = errors.query | |
| fields: | |
| - dimension_group: error | |
| type: time | |
| timeframes: [time, date] | |
| sql: ${TABLE}.error_time | |
| - dimension: file_name | |
| type: string | |
| sql: ${TABLE}.file_name | |
| - dimension: error_reason | |
| type: string | |
| sql: ${TABLE}.err_reason |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment