Commit Graph
3 Commits
Author SHA1 Message Date
discord9 f6c2c72192 feat(flow): remove the streaming executor and the dual-engine router
The legacy per-request Flow runtime is gone, leaving the batching scheduler as
the only execution profile. A flow whose SQL has no time window therefore needs
an explicit `EVAL INTERVAL`; without one it used to run as a request-local
streaming query and is now rejected with that hint.

Persisted flows whose options say `flow_type: streaming` are still listed and
droppable, but creating or recovering one fails with a "drop and recreate"
error, so no old definition can silently run on a scheduler that no longer
exists. `FlowType::Streaming` and `get_flow_type_from_options` stay for
deserializing old metadata and old procedure data, and the reserved `flow_type`
key keeps being written so the metadata shape does not change.

Instant-TTL sources are rejected for every flow: the batching scheduler cannot
read them, and there is no second profile to fall back to.

The full-row mirror RPC is deliberately kept. It is not a streaming leftover:
it is the only path that tells batching that a SQL `INSERT INTO` changed a
source table, since bulk/COPY and the HTTP batcher use the timestamp-only path.
`BatchingEngine::handle_inserts_inner` filters requests per task by source
table name, so forwarding all of them replaces the removed routing table.

Dead code that only the streaming runtime reached is removed as well: the
stateless query and its memtable source, the relation/repr row model, the
single-attempt frontend insert, and the `InsertIntoFlow` error variant. Those
were invisible to the compiler because the crate allows dead code.

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-11-12 14:42:24 +08:00
Ruihang Xia 3556eb4476 chore: add tests to comment column on information_schema (#7514)
* feat: show comment on information_schema

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* add to information schema for columns, add sqlness tests

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* remove duplications

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix typo

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* update integration test

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2026-01-04 09:05:50 +00:00
564cc0c750 feat: table/column/flow COMMENT (#7060)
* initial impl

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* simplify impl

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* sqlness test

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* avoid unimplemented panic

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* validate flow

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* update sqlness result

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix table column comment

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* table level comment

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* simplify table info serde

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* don't txn

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* remove empty trait

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* wip: procedure

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* update proto

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* grpc support

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* Apply suggestions from code review

Co-authored-by: dennis zhuang <killme2008@gmail.com>
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* try from pb struct

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* doc comment

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* check unchanged fast case

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* tune errors

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix merge error

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* use try_as_raw_value

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Co-authored-by: dennis zhuang <killme2008@gmail.com>
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com>
2025-12-10 15:08:47 +00:00