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

Don't coalesce closeTime when checking against null #6965

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jmbarzee
Copy link
Contributor

@jmbarzee jmbarzee commented Dec 10, 2024

What changed?

Prevent Coalesce of closeTime when checking if (not) null

Why?

To get proper query results when querying visibility with closeTime in where clause

How did you test it?

Start workflow, query for running workflows based on closeTime.

Potential risks

Query results can now be deceptive, returning CloseTimes that have been coalesced when where clause ensured that CloseTime was null.
Also, Depending on SQL Version behavior, indexes may be no longer leveraged and performance may decrease for the relevant queries.

Documentation

N/A

Is hotfix candidate?

No.

@jmbarzee jmbarzee requested a review from a team as a code owner December 10, 2024 21:59
@jmbarzee jmbarzee force-pushed the jbarzee/visibility-avoid-coalesce-closetime branch from 2ad2ef6 to 00e8459 Compare December 13, 2024 01:35
@jmbarzee jmbarzee force-pushed the jbarzee/visibility-avoid-coalesce-closetime branch from 00e8459 to 30b9f56 Compare December 13, 2024 02:19
@jmbarzee jmbarzee changed the title WIP: Don't coalesce closeTime when checking against null Don't coalesce closeTime when checking against null Dec 13, 2024
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.

1 participant