1 Commits

Author SHA1 Message Date
318155561b Remove single-table mode
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2023-07-06 12:26:35 +03:00

View File

@@ -206,7 +206,7 @@ func (ch *ClickHouse) generateCreateTable(tablename string, columns *orderedmap.
columnDefs = append(columnDefs, fmt.Sprintf("%s %s", quoteIdent(pair.Key), ch.toNullable(pair)))
}
orderBy := make([]string, 0, 3)
orderBy := make([]string, 0, 2)
if _, ok := columns.Get("host"); ok {
orderBy = append(orderBy, "host")
}