Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export class ClickHouseQuery extends BaseQuery {
}

public castToString(sql) {
return `CAST(${sql} as String)`;
return `CAST(${sql} AS Nullable(String))`;
}

public seriesSql(timeDimension: BaseTimeDimension) {
Expand Down Expand Up @@ -273,6 +273,7 @@ export class ClickHouseQuery extends BaseQuery {
templates.quotes.escape = '\\`';
templates.types.boolean = 'BOOL';
templates.types.timestamp = 'DATETIME';
templates.types.string = 'Nullable(String)';
delete templates.types.time;
// ClickHouse intervals have a distinct type for each granularity
delete templates.types.interval;
Expand Down
Loading