Files
greptimedb/tests/compatibility/cases/inverted_index_survival/setup.sql
T
NightG1owZandNightG1owZ caefcfd012 test: add inverted index compatibility case (#9519)
* test: add inverted index compatibility case (#5188)

Signed-off-by: NightG1owZ <316247938+NightG1owZ@users.noreply.github.com>

* test(compat): assert the newly indexed column stays queryable (#9535)

Signed-off-by: NightG1owZ <316247938+NightG1owZ@users.noreply.github.com>

* test(compat): narrow to_range to versions carrying #9545

The filtered read added in the previous commit only returns rows once #9545 is present. That fix is on main only (no backport-* labels), so it ships in the v1.4.0 line. Narrow to_range to >=v1.4.0-alpha.0 so the documented downgrade invocation (--to-version v1.1.4) is not broken.

Also add the missing trailing newline to the three case files.

Signed-off-by: NightG1owZ <316247938+NightG1owZ@users.noreply.github.com>

---------

Signed-off-by: NightG1owZ <316247938+NightG1owZ@users.noreply.github.com>
Co-authored-by: NightG1owZ <316247938+NightG1owZ@users.noreply.github.com>
2026-10-14 02:00:39 +00:00

15 lines
432 B
SQL

CREATE TABLE t_inverted_index_survival (
host STRING INVERTED INDEX,
msg STRING INVERTED INDEX,
msg2 STRING,
ts TIMESTAMP TIME INDEX,
cpu DOUBLE,
PRIMARY KEY(host)
) ENGINE=mito;
INSERT INTO t_inverted_index_survival VALUES
('h1', 'first event', 'first note', '2026-07-07 00:00:00+0000', 1.0),
('h2', 'second event', 'second note', '2026-07-07 00:01:00+0000', 2.0);
ADMIN FLUSH_TABLE('t_inverted_index_survival');