MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / duckDBListColumn

Function duckDBListColumn

plugins/destination/duckdb/client/write.go:40–47  ·  view source on GitHub ↗
(c schema.Column)

Source from the content-addressed store, hash-verified

38}
39
40func duckDBListColumn(c schema.Column) bool {
41 // Maps also implement arrow.ListLikeType but map to DuckDB json, not a LIST.
42 if _, isMap := c.Type.(*arrow.MapType); isMap {
43 return false
44 }
45 _, ok := c.Type.(arrow.ListLikeType)
46 return ok
47}
48
49// keyListColumn reports whether a column is part of a key (primary key or unique
50// constraint) and maps to a duckdb LIST type, which can't be indexed.

Callers 3

containsListFunction · 0.85
keyListColumnFunction · 0.85

Calls

no outgoing calls

Tested by 1