Skip to content

Default values are ignored in AppendStruct #587

Description

@leonidboykov

Issue description

Altering table to add a new column causes an error

[AppendStruct]: missing destination name "<column_name>" in <struct_name>"

even if I've specified a default value for the column.

Perhaps checking that column has a default value here might solve the issue.

if !found {
return nil, &OpError{
Op: op,
Err: fmt.Errorf("missing destination name %q in %T", name, s),
}
}

Configuration

OS: unrelated

Interface: E.g. native

Driver version: v2.0.12

Go version: unrelated

ClickHouse Server version: 20.10.6.27

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions