Open ohaibbq opened 8 months ago
WITH toks AS ( SELECT DATETIME "2024-01-07 00:00:00" as dt UNION ALL SELECT DATETIME "2024-01-01 00:00:00" UNION ALL SELECT null ) SELECT dt, ROW_NUMBER() OVER (ORDER BY dt DESC NULLS FIRST), ROW_NUMBER() OVER (ORDER BY dt DESC NULLS LAST) FROM toks
Null ordering can be added to the parser here https://github.com/goccy/go-zetasqlite/blob/main/internal/formatter.go#L1055-L1058 via item.NullOrder()
item.NullOrder()
Expected
Actual