mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-09-21 20:55:34 +00:00
* feat(mito2): add opt-in byte stream split encoding Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * fix(mito2): correct float encoding checks Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * test(compat): cover float SST encoding Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * fix(mito2): compile float encoding tests Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * fix(mito2): release parquet test writer Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * fix(mito2): register float test primary key Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * test(mito2): verify BSS write lifecycles Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * test(metric-engine): verify BSS physical SST Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * test(mito2): verify bulk BSS lifecycle Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * fix(mito2): compile bulk BSS test Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * refactor(mito2): narrow bulk encoding constructors Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * test(compat): accept generated float upgrade output Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * test(compat): accept generated float downgrade output Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * refactor(mito2): narrow bulk encoding builder Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * test(perf): add default versus BSS storage comparison Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * test(perf): align BSS reader benchmarks with prior study Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * fix(perf): parse current read benchmark averages Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * fix(perf): retain default float encoding in direct SST fixtures Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * test(perf): isolate BSS user SSTs and benchmark every file Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * docs(perf): record measured BSS storage and reader tradeoffs Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * docs(perf): expose warm scan variability and evidence limits Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * docs(perf): clarify BSS baseline and storage measurement scope Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * test(perf): model bounded mixed integer and fractional metric series Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * docs(perf): report bounded mixed BSS measurements and query regressions Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * docs(perf): qualify timings affected by concurrent host builds Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * test(perf): include float BSS comparison in default regression cases Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> * fix(perf): omit unsupported float encoding option from baseline setup Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> --------- Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
50 lines
1.4 KiB
SQL
50 lines
1.4 KiB
SQL
CREATE TABLE t_downgrade_compatibility(
|
|
ts TIMESTAMP TIME INDEX,
|
|
host STRING PRIMARY KEY,
|
|
val INT
|
|
);
|
|
|
|
INSERT INTO t_downgrade_compatibility VALUES
|
|
('2024-02-09 00:00:00+0000', 'host_a', 1),
|
|
('2024-02-09 00:01:00+0000', 'host_b', 2);
|
|
|
|
ADMIN FLUSH_TABLE('t_downgrade_compatibility');
|
|
|
|
CREATE TABLE t_preserve_sequence_downgrade(
|
|
ts TIMESTAMP TIME INDEX,
|
|
host STRING,
|
|
val INT,
|
|
PRIMARY KEY(host)
|
|
)
|
|
ENGINE=mito
|
|
WITH(append_mode='true', preserve_row_sequence='true');
|
|
|
|
INSERT INTO t_preserve_sequence_downgrade VALUES
|
|
('2024-02-09 00:00:00+0000', 'host_a', 1),
|
|
('2024-02-09 00:01:00+0000', 'host_b', 2);
|
|
|
|
ADMIN FLUSH_TABLE('t_preserve_sequence_downgrade');
|
|
|
|
INSERT INTO t_preserve_sequence_downgrade VALUES
|
|
('2024-02-09 00:02:00+0000', 'host_a', 3),
|
|
('2024-02-09 00:03:00+0000', 'host_c', 4);
|
|
|
|
ADMIN FLUSH_TABLE('t_preserve_sequence_downgrade');
|
|
|
|
ADMIN COMPACT_TABLE('t_preserve_sequence_downgrade');
|
|
|
|
CREATE TABLE t_sst_float_field_encoding_downgrade(
|
|
ts TIMESTAMP TIME INDEX,
|
|
host STRING PRIMARY KEY,
|
|
f FLOAT,
|
|
d DOUBLE
|
|
) ENGINE=mito
|
|
WITH('experimental_sst_float_field_encoding'='byte_stream_split');
|
|
|
|
INSERT INTO t_sst_float_field_encoding_downgrade VALUES
|
|
('2024-02-10 00:00:00+0000', 'host_a', 1.25, 10.5),
|
|
('2024-02-10 00:01:00+0000', 'host_b', -2.5, 20.25),
|
|
('2024-02-10 00:02:00+0000', 'host_c', NULL, NULL);
|
|
|
|
ADMIN FLUSH_TABLE('t_sst_float_field_encoding_downgrade');
|