Closed michelbadetti closed 2 months ago
Thanks for reaching out @michelbadetti !
Did you try zero_length_range_allowed=True
?
Here's one of the examples from the docs:
Hello @dbeatty10,
My bad then, I thought i had thouroughly read the documentation !
Thank you for your feedback, it solved my issue as could be expected.
No worries @michelbadetti, so glad you were able to accomplish your goal 🎉
Describe the bug
Using DBT on BigQuery, mutually exclusive ranges test, the highlited line throws a test error. Although, using date ranges (rather than timestamp ranges) and considering that most DBMS have an inclusive "between" operator for dates, it is a legitimate practice to close a date period on D-day when the next period starts at D+1.
Steps to reproduce
Using DBT on BigQuery, this configuration block in Yaml file should cover the issue reproduction
Expected results
On DBMS inclusive "between" operator for dates, when using date ranges, rather than timestamp ranges, having start date = end date should be allowed. Either using a specific option or by default.
Actual results
Par of the result as of now can be seen in the following picture, where start date = end date.
System information
The contents of your
packages.yml
file: packages:Which database are you using dbt with?
The output of
dbt --version
: