Constraints should work with timezone-aware datetime columns #1576
Labels
feature:constraints
Related to inputting rules or business logic
feature request
Request for a new feature
Milestone
I'm filing this issue as a result of #1570
Problem Description
Currently, I am able to use a variety of constraints with datetime columns: SclarInequality, Inequality, ChainedInequality etc. These constraints should work for datetime columns even when there are missing values.
However, if my datetime columns are timezone aware, then the constraint causes the synthesizer to crash with a cryptic error that seems to have nothing to do with the issue.
Expected behavior
I expect that all constraints should be able to work with timezone-aware datetime columns. See the example code below.
Output:
Additional context
If it is not feasible to allow timezone-aware columns through a constraint, then the data validation should fail upfront (even when no constraints are added) as well as giving the user a clearer message as to why.
The text was updated successfully, but these errors were encountered: