tree: e29f9723e651fd4216e461302152fc88f1c6e641 [path history] [tgz]
  1. src/
  2. .gitignore
  3. Cargo.toml
  4. README.md
samples/stream_load/rust/README.md

Doris Stream Load in Rust

How to use:

  1. Create a table in Doris:

    CREATE TABLE `db0`.`t_user` (
        `id` int,
        `name` string
    )
    DUPLICATE KEY(`id`)
    DISTRIBUTED BY HASH(`id`) BUCKETS 1
    PROPERTIES (
        "replication_num" = "1"
    );
    
  2. Build the project:

    cargo build
    
  3. Run the application:

    cargo run
    

What can this demo do:

This is a rust demo for doris stream load, you can use this code load your data into doris by stream load.