File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ func (s *ClickHouseAvroSyncMethod) pushS3DataToClickHouse(
281281
282282 avroColName = peerdb_clickhouse .QuoteIdentifier (avroColName )
283283
284- if field .Type == types .QValueKindJSON &&
284+ if ( field .Type == types .QValueKindJSON || field . Type == types . QValueKindJSONB ) &&
285285 qvalue .ShouldUseNativeJSONType (ctx , config .Env , s .ClickHouseConnector .chVersion ) {
286286 avroColName = fmt .Sprintf ("JSONExtractString(%s)" , avroColName )
287287 }
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ func ToDWHColumnType(
8686 return "" , err
8787 }
8888 colType = fmt .Sprintf ("Array(%s)" , colType )
89- } else if kind == types .QValueKindJSON && ShouldUseNativeJSONType (ctx , env , dwhVersion ) {
89+ } else if ( kind == types .QValueKindJSON || kind == types . QValueKindJSONB ) && ShouldUseNativeJSONType (ctx , env , dwhVersion ) {
9090 colType = "JSON"
9191 } else if val , ok := types .QValueKindToClickHouseTypeMap [kind ]; ok {
9292 colType = val
You can’t perform that action at this time.
0 commit comments