Open faisal00813 opened 1 month ago
Side note:
sql_insert works fine when changing the column to object('json') from JSON. object('json') has been deprecated in Clickhouse
DDL
SET allow_experimental_json_type = 1;
CREATE TABLE default.horizon_events_test
(
`date` DateTime,
`timestamp_epoch` DateTime DEFAULT now(),
`userId` Nullable(String),
`userEmail` Nullable(String),
`userType` Nullable(String),
`userLocation` object('json'),
`productName` Nullable(String),
`ownerType` Nullable(String),
`project` Nullable(String),
`version` Nullable(String),
`actionType` Nullable(String),
`payload` object('json'),
`environment` Nullable(String),
`osVersion` Nullable(String),
`osName` Nullable(String),
`osBuild` Nullable(String)
)
ENGINE = MergeTree
PRIMARY KEY (userEmail,
date,
actionType)
ORDER BY (userEmail,
date,
actionType)
TTL date + toIntervalDay(90)
SETTINGS allow_nullable_key = 1,
index_granularity = 8192;
rpk connect version:
Clickhouse version:
ClickHouse server version 24.9.1 revision 54471
Table DDL:
YAML:
error: