Skip to content

Commit

Permalink
Merge pull request #35 from fraser/fix-pct_used-type
Browse files Browse the repository at this point in the history
Update redshift_tables.pct_used to match precision of svv_table_info.pct_used
  • Loading branch information
fabio-looker authored Jan 30, 2019
2 parents 0f1030d + 5c82e0e commit 39fc4be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion redshift_views.view.lkml
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ view: redshift_tables {
"sortkey1_enc"::varchar,
"sortkey_num"::int,
"size"::bigint,
"pct_used"::numeric,
"pct_used"::numeric(10,4),
"unsorted"::numeric,
"stats_off"::numeric,
"tbl_rows"::bigint,
Expand Down Expand Up @@ -713,6 +713,11 @@ view: redshift_tables {
type: sum
sql: ${size} ;;
}
measure: total_percent_used {
description: "Total percent used by the tables"
type: sum
sql: ${pct_used} ;;
}

}

Expand Down

0 comments on commit 39fc4be

Please sign in to comment.