Skip to content

Prevent 'Divide by zero' error when using 'rangeLowRatio' and' rangeHighRatio' criterias (issue OHDSI/Atlas#69).#3

Merged
chrisknoll merged 1 commit into
OHDSI:masterfrom
ganisimov:master
Sep 5, 2017
Merged

Prevent 'Divide by zero' error when using 'rangeLowRatio' and' rangeHighRatio' criterias (issue OHDSI/Atlas#69).#3
chrisknoll merged 1 commit into
OHDSI:masterfrom
ganisimov:master

Conversation

@ganisimov

Copy link
Copy Markdown

Adding 'rangeLowRatio' and 'rangeHighRatio' criterias may cause 'Divideby zero' error when running in Redshift even if WHERE clause contains a check that 'range_low' or 'range_high' is not equals to zero, i.e.

  WHERE
    C.range_high > 0.0000
    AND
    (C.value_as_number / C.range_high) > 1.0000

…ighRatio' criterias (issue OHDSI/Atlas#69).

Adding 'rangeLowRatio' and 'rangeHighRatio' criterias may cause 'Divideby zero' error when running in Redshift even if WHERE clause contains a check that 'range_low' or 'range_high' is not equals to zero, i.e.

  WHERE
    C.range_high > 0.0000
    AND
    (C.value_as_number / C.range_high) > 1.0000
@chrisknoll chrisknoll merged commit 25b8cdf into OHDSI:master Sep 5, 2017
@chrisknoll

Copy link
Copy Markdown
Collaborator

This is done, however, because you created this PR off of your own master branch, you might see a conflict when you sync your upstream. In the future, it's a good idea to create PRs off of feature or topic branches.

@ganisimov

Copy link
Copy Markdown
Author

Thanks, I didn't know this

ssuvorov-fls pushed a commit that referenced this pull request Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants