ClickHouse / ClickHouse/clickhouse-rs

Support Nested more convenient

Open
#37 1 comment 1 reaction 0 assignees View on GitHub
data-types enhancement
Dominant language
Rust
Stars
559
Forks
172
Avg merge
1d 19h
Merged PRs (30d)
3

Description

Right now it can be done using separate arrays:
```rust
#[derive(Debug, Row, Serialize, Deserialize)]
struct MyRowOwned {
no: u32,
#[serde(rename = "nested.a")]
a: Vec,
#[serde(rename = "nested.b")]
b: Vec,
}
```

However it can be more convenient to detect following pattern:
```rust
#[derive(Debug, Row, Serialize, Deserialize)]
struct MyRowOwned {
no: u32,
nested: Vec,
}

#[derive(Debug, Row, Serialize, Deserialize)]
struct Nested {
a: f64,
b: f64,
}
```

Contributor guide

Open the contributing guide

Research direction

The issue names no file, test, or entry point; start by locating the Row derive and the existing separate-array handling. Compare the requested nested Vec representation with the current mapping behavior, and consider the work complete when the nested form is supported without breaking the existing form.

Written by the indexing model from the issue text.

Assessment

Tech stack
clickhouse, rust
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.