-
Notifications
You must be signed in to change notification settings - Fork 11
==
does not compare columns of ZonedDateTime
s correctly
#84
Comments
Yeah definitely. |
I'm sure I can get a PR in for this in fairly short order. |
That would be fantastic. Thanks! |
Well, I figured out why DataTables.jl has just been using This is actually more complex to solve than I initially anticipated, owing to the fact that
This, in turn, is because In my opinion, the best fix for this would be to provide I think I'm going to go ahead and take a shot at a PR here, but I suspect it isn't going to be pretty. |
The problem is with |
I think the definition for |
Makes sense to me. I've made changes to my code that's working with DataTables to work around this issue for the moment, and I won't spend time trying to make |
Comparing two
ZonedDateTime
s that represent the same "instant" (but in different time zones) with==
returnstrue
, but comparing them withisequal
returns false.DataFrames.jl maintains this convention:
...but DataTables.jl doesn't:
It's no real mystery why, given the fairly terse definition of
==
:I think that supporting
==
comparisons (rather than just doingisequals
all the way down) would be preferable in this case.Version information:
The text was updated successfully, but these errors were encountered: