What type of bug is this?
Incorrect result
What subsystems are affected?
Query Engine
Minimal reproduce step
-
start greptimedb in standalone mode.
-
create table
CREATE TABLE ts_precision_bug (
ts TIMESTAMP(3) TIME INDEX,
v INT,
PRIMARY KEY (v)
);
- insert data
INSERT INTO ts_precision_bug VALUES
('2026-06-02 03:49:59.999', 1),
('2026-06-02 03:50:00.000', 2),
('2026-06-02 03:50:00.195', 3),
('2026-06-02 03:50:01.000', 4);
- query data
SELECT ts, v
FROM ts_precision_bug
WHERE ts <= '2026-06-02 03:50:00'
ORDER BY ts DESC
LIMIT 1;
What did you expect to see?
+-------------------------+------+
| ts | v |
+-------------------------+------+
| 2026-06-02 03:50:00.000 | 2 |
+-------------------------+------+
What did you see instead?
+-------------------------+------+
| ts | v |
+-------------------------+------+
| 2026-06-02 03:50:00.195 | 3 |
+-------------------------+------+
What operating system did you use?
arch linux
What version of GreptimeDB did you use?
v1.0.2
Relevant log output and stack trace
What type of bug is this?
Incorrect result
What subsystems are affected?
Query Engine
Minimal reproduce step
start greptimedb in standalone mode.
create table
What did you expect to see?
What did you see instead?
What operating system did you use?
arch linux
What version of GreptimeDB did you use?
v1.0.2
Relevant log output and stack trace