Files
greptimedb/tests/compatibility/cases/column_encoding/setup.sql
T
dennis zhuang 672e94f61d feat: add column encoding option and use it for trace span ids (#9629)
* feat: add column encoding option and set it for trace span ids

COMPRESSION WITH accepts encoding = 'plain' | 'delta_binary_packed'.
Either disables the dictionary for the column; delta_binary_packed is
limited to integer and timestamp columns.

OTLP trace v1/v2 tables now create span_id and parent_span_id with plain
encoding and 64KiB pages, and timestamp_end with delta_binary_packed.

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

* test: add compatibility cases for column encoding options

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

* test: move column encoding downgrade checks into downgrade_compatibility

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

---------

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-16 09:40:54 +00:00

4 lines
191 B
SQL

CREATE TABLE legacy_spans (ts TIMESTAMP TIME INDEX, span_id STRING, ts_end TIMESTAMP(9));
INSERT INTO legacy_spans VALUES (1, 'a1', 1000), (2, 'a2', 2000);
ADMIN FLUSH_TABLE('legacy_spans');