-
Notifications
You must be signed in to change notification settings - Fork 26
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
Port test_mutually_exclusive_ranges() to TSQL #18
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
my priority for this macro is not the macro itself, but really because it is used in
dbt-utils
's integration testing for validation of OTHER macros.calc
CTEthese two coalesces are the tricky parts that need to be converted into
NULLIF
s orCASE WHEN
s? Alsofalse
needs to be replaced with0
bc TSQL doesn't have a true & false. Here's a gist of the compiled SQL that's error-ing out. If you log into the test db (dbt-msft-serverless-db
), you can debug it.my interpretation for the logic for the first coalesce statement below, though i'm not sure in what scenario
lower_bound < upper_bound
could beNULL
.current error
the error i'm getting is
Incorrect syntax near '<'. (102)
window_functions
CTEthis piece I already was able to convert
becomes
The text was updated successfully, but these errors were encountered: