Skip to content

Commit

Permalink
updates per code review
Browse files Browse the repository at this point in the history
  • Loading branch information
plessbd committed Feb 7, 2017
1 parent 9d4e572 commit 46dd2ec
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions etl/js/config/supremm/etl.schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,13 @@ function getDistributionSQLCaseStatement(stat, _max, s1, e1, s2, e2) {
+ " then " + stat + " "
+ " when (" + s1 + " < " + s2 + " and "
+ e1 + " between " + s2 + " and " + e2 + " ) "
+ " then " + stat + " * (" + e1 + " - " + s2 + " + 1 ) / ( " +
e1 + " - " + s1 + " + 1) "
+ " then " + stat + " * (" + e1 + " - " + s2 + " + 1 ) / ( " + e1 + " - " + s1 + " + 1) "
+ " when (" + s1 + " between " + s2 + " and " + e2 + " and "
+ e1 + " > " + e2 + " ) "
+ " then " + stat + " * (" + e2 + " - " + s1 + " + 1 ) / (" +
e1 + " - " + s1 + " + 1) "
+ " then " + stat + " * (" + e2 + " - " + s1 + " + 1 ) / (" + e1 + " - " + s1 + " + 1) "
+ " when (" + s1 + " < " + s2 + " and "
+ e1 + " > " + e2 + " ) "
+ " then " + stat + " *( " + _max + " ) / (" + e1 + " - " +
s1 + " + 1) "
+ " then " + stat + " *( " + _max + " ) / (" + e1 + " - " + s1 + " + 1) "
+ " else " + stat + " "
+ " end";
}
Expand Down

0 comments on commit 46dd2ec

Please sign in to comment.