Closed igorpojzl closed 4 years ago
@pyrooka Please review.
Thanks for the fix! One little thing: please try to avoid copying large code blocks if it is not necessary because it makes the review harder.
Have you tested the other filters? For me, the others look like broken:
MBQL:
:filter [:and [:= [:field-id 40] [:value Harry {:base_type :type/Text, :special_type :type/Category, :database_type string}]] [:< [:datetime-field [:field-id 43] :default] [:absolute-datetime (t/zoned-date-time 1990-03-31T00:00Z[GMT]) :default]]]
Native:
:filters [{:member Characters.birth, :operator beforeDate, :values [1990-03-31T00:00:00Z]}]
Issue Reference this PR resolves
Broken beforeDate and afterDate time filters #48