From e696a61a2c31417fcafecffec8e2f2a0cdf860bd Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Wed, 7 May 2025 13:32:35 +0800 Subject: [PATCH] fix: clickhouse remove allow_nullable_key --- backends/clickhouse/clickhouse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/clickhouse/clickhouse.go b/backends/clickhouse/clickhouse.go index 31c14b4..66599d7 100644 --- a/backends/clickhouse/clickhouse.go +++ b/backends/clickhouse/clickhouse.go @@ -183,7 +183,7 @@ func (click *SClickhouseBackend) GetCreateSQLs(ts sqlchemy.ITableSpec) []string createSql += fmt.Sprintf("\nTTL `%s` + INTERVAL %d %s", ttlCol.Name(), ttlCount, ttlUnit) } // set default time zone of table to UTC - createSql += "\nSETTINGS index_granularity=8192, allow_nullable_key=1" + createSql += "\nSETTINGS index_granularity=8192" } return []string{ createSql,