-
Notifications
You must be signed in to change notification settings - Fork 121
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
validate column: Pandas exception in combiner for min/max of dates/timestamps #1396
Comments
I need the tests from #1397 to be able to test any fix in this issue. |
I believe the problem stems from how we try to provide a difference between the values professional-services-data-validator/data_validation/combiner.py Lines 127 to 128 in 949d6c5
We use
My guess is that The solution might be to cast the value to int64 before calculating the difference:
|
If a table contains dates/timestamps with a wide gap from the present day then min/max validations throw an exception:
Test tables
Oracle:
PostgreSQL:
Test commands
col_dt_low:
col_dt_epoch (near present time):
col_dt_high:
col_ts_low:
col_ts_epoch:
col_ts_high:
The text was updated successfully, but these errors were encountered: