I've encountered a problem where QUERY slightly changes some datetime values. Here goes a minimal reproducible example.
A sheet to play with.
- A:Ahas datetime values.
- B:Brepeats them using- =FILTER(A2:A, SEQUENCE(ROWS(A2:A), 1, 1, 0)).
- C:Cshows row numbers for any values that do not match the original. There is- N/A, everything matches.
- D:Drepeats original datetimes with- =QUERY(A2:A,,0).
- E:Eshows row numbers for any values that do not match the original. There is a few.
- F:Fshows the original values and- G:Gshows the values after the- QUERYfor the non-matching pairs. 10th digit after the dot is different
- H:Hshows the difference between- F:Fand- G:G. Always the same:- -0.000000000007276...
Why is that? Any way to remedy that? Maybe it is a bug in Google Sheets?
P.S.: the data is from another question (removed everything except datetimes). I had to use a FILTER solution in the answer despite a QUERY solution being simpler. 
 
    