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 isN/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 andG:Gshows the values after theQUERYfor the non-matching pairs. 10th digit after the dot is differentH:Hshows the difference betweenF:FandG: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.