Skip to content

Add a Doris connector (stream-load batch writes) #817

Closed

Description

@E2ern1ty

What & why

Doris is a high-performance real-time OLAP database with sub-second queries,
high-concurrency real-time ingestion and upserts (Unique Key model, partial-column
updates), MySQL-protocol compatibility, and strong aggregation/JOIN. It is a natural
downstream analytics store for graph-computing results. You can connect today via the
JDBC connector (Doris speaks MySQL protocol), but it only does row-by-row INSERT and
misses Doris's high-throughput load path - Stream Load - so write throughput is poor.

Doris 是高性能实时 OLAP 数据库,具备亚秒级查询、高并发实时写入与更新(Unique Key 模型、
部分列更新)、MySQL 协议兼容以及出色的聚合/JOIN 能力,是图计算结果天然的下游分析存储。
现在可通过 JDBC connector 接入(Doris 兼容 MySQL 协议),但只能逐行 INSERT,未利用 Doris
的高吞吐导入通道 Stream Load,写吞吐差。

The task

Create geaflow-dsl-connector-doris. Sink writes via Doris Stream Load (buffered, flush
on threshold); source supports parallel partitioned reads.

新建 geaflow-dsl-connector-doris。Sink 通过 Doris Stream Load 写入(攒批,达到阈值时
flush);source 支持按分区并行读。

Where to look / 怎么做

  1. Use geaflow-dsl-connector-jdbc as a baseline and spot the differences between
    "generic JDBC" and "Doris-specific".
  2. Sink: buffer rows in write(), flush to Doris via Stream Load (HTTP PUT to FE) on
    threshold or flush(); use CSV/columnar payload for throughput.
  3. SPI registration + parent/aggregation pom + docs + tests.

Done when

  • Sink throughput is clearly better than row-by-row JDBC (attach a simple benchmark in the PR)
  • Source supports parallel partitioned reads
  • Testcontainers integration test
  • CN + EN docs + examples
  • checkstyle / RAT pass

Activity

  1. kitalkuyo-gita commented on Jul 23, 2026

    @kitalkuyo-gita
    Member

    @E2ern1ty Hello, I am glad to see your interest in contributing to Geaflow. Before you begin implementation, please allow me to clarify a few key points:

    • (1) CSV/JSON serialization must correctly handle \n, ", \, Unicode, and empty strings;
    • (2) Stream Load flushing must be idempotent upon finish() and safe when the buffer is empty;
    • (3) partition logic must clamp partitionNum and handle partition columns that are entirely NULL;
    • (4)close() must flush the remaining buffer and be safe against multiple invocations;
    • (5) label generation must be globally unique in a concurrent environment;
    • (6) integration tests should cover FE failover, "table not found" scenarios, and full round-trip data type fidelity using Testcontainers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions