common: clickHouse → clickhouse

Let's say that we use "ClickHouse" and "clickhouse".
This commit is contained in:
Vincent Bernat
2024-06-09 14:58:32 +02:00
parent 1be313a209
commit 297e04b95c
10 changed files with 19 additions and 19 deletions

View File

@@ -51,7 +51,7 @@ func New(config Configuration) (*Component, error) {
if column.NoDisable {
return nil, fmt.Errorf("column %q cannot be disabled", k)
}
if slices.Contains(schema.clickHousePrimaryKeys, k) {
if slices.Contains(schema.clickhousePrimaryKeys, k) {
return nil, fmt.Errorf("column %q cannot be disabled (primary key)", k)
}
column.Disabled = true
@@ -76,7 +76,7 @@ func New(config Configuration) (*Component, error) {
if column.NoDisable {
return nil, fmt.Errorf("column %q cannot be present on main table only", k)
}
if slices.Contains(schema.clickHousePrimaryKeys, k) {
if slices.Contains(schema.clickhousePrimaryKeys, k) {
// Primary keys are part of the sorting key.
return nil, fmt.Errorf("column %q cannot be present on main table only (primary key)", k)
}