Skip to content
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

TWA query updates for Bad Status #791

Merged
merged 3 commits into from
Jul 29, 2024
Merged

TWA query updates for Bad Status #791

merged 3 commits into from
Jul 29, 2024

Conversation

srjhunjhunwalacorp
Copy link
Contributor

No description provided.

@srjhunjhunwalacorp srjhunjhunwalacorp added the queries Tasks related to querying label Jul 29, 2024
@srjhunjhunwalacorp srjhunjhunwalacorp self-assigned this Jul 29, 2024
GBBBAS added 2 commits July 29, 2024 11:55
Signed-off-by: GBBBAS <[email protected]>
Signed-off-by: GBBBAS <[email protected]>
', CASE WHEN `Fill_{{ status_column }}` <> "Bad" THEN `Next_{{ value_column }}_For_{{ status_column }}` ELSE 0 END AS `Next_{{ value_column }}` '
', CASE WHEN `Fill_{{ status_column }}` <> "Bad" AND `Next_{{ status_column }}` <> "Bad" THEN ((cast(`Next_{{ timestamp_column }}` AS double) - cast(`{{ timestamp_column }}` AS double)) / 60) WHEN `Fill_{{ status_column }}` <> "Bad" AND `Next_{{ status_column }}` NOT <> "Bad" THEN ((cast(`Next_{{ timestamp_column }}` AS integer) - cast(`{{ timestamp_column }}` AS double)) / 60) ELSE 0 END AS good_minutes '
', CASE WHEN `Fill_{{ status_column }}` <> "Bad" AND `Next_{{ status_column }}` <> "Bad" THEN ((cast(`Next_{{ timestamp_column }}` AS double) - cast(`{{ timestamp_column }}` AS double)) / 60) WHEN `Fill_{{ status_column }}` <> "Bad" AND `Next_{{ status_column }}` <> "Bad" THEN ((cast(`Next_{{ timestamp_column }}` AS integer) - cast(`{{ timestamp_column }}` AS double)) / 60) ELSE 0 END AS good_minutes '
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be = "Bad" as the original code before these changes was

NOT IN ("Good", "Good, Annotated", "Substituted, Good, Annotated", "Substituted, Good", "Good, Questionable", "Questionable, Good","Questionable"))

@GBBBAS GBBBAS merged commit 02769f7 into develop Jul 29, 2024
17 checks passed
@GBBBAS GBBBAS deleted the feature/00790 branch July 29, 2024 11:35
@GBBBAS GBBBAS changed the title TWA query error fixed, tested the dev branch for any other issues and found good TWA query updates for Bad Status Jul 29, 2024
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
queries Tasks related to querying
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants