Files
greptimedb/src/datatypes
dennis zhuang 6a3ad83333 refactor(datatypes): share series frame decoding and pack streams (#10786)
* refactor(datatypes): share series frame label and payload decoding

Decode raw and evaluated frames through one label helper and one
per-field payload helper, and drop the test-only row-list raw decoder
with its differential tests. Cases only those tests covered (nullable
parent declaration, keyless explicit raw row, payload/axis length
mismatch, defect precedence) are kept as direct tests. The in-file
aggregate-state contribution test is folded into frame/tests.rs, and
canonicalize/validate_batch comments are trimmed.

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

* refactor(common-query): share the evaluated and aggregate-state pack streams

Run both grid-addressed pack streams through one generic stream that
differs only in how a chunk is validated and columnarised, publish the
final flush of every pack stream through one helper, and reuse
unpack_error and one empty-batch yield helper in the unpack streams.

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

* test(common-query): build plain float chunks through chunk_with

Also rename explicit_mode_rejects_key_payload to what it tests; the
primary-key half is primary_key_mode_rejects_explicit_metric_payload.

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

* docs(common-query): drop an inaccurate alias claim

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

* docs(datatypes): say who checks the schema before decode_aggregate_state_labels

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

---------

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-12-02 09:00:30 +00:00
..