MCPcopy Create free account
hub / github.com/PostHog/duckgres / TestTypesUnsupported

Function TestTypesUnsupported

tests/integration/types_test.go:304–328  ·  view source on GitHub ↗

TestTypesUnsupported tests types that are mapped or unsupported

(t *testing.T)

Source from the content-addressed store, hash-verified

302 }
303 runQueryTests(t, tests)
304}
305
306// TestTypesUnsupported tests types that are mapped or unsupported
307func TestTypesUnsupported(t *testing.T) {
308 tests := []QueryTest{
309 // Network types (mapped to TEXT in Duckgres)
310 {Name: "inet_type", Query: "SELECT '192.168.1.1'::INET", Skip: SkipNetworkType},
311 {Name: "cidr_type", Query: "SELECT '192.168.1.0/24'::CIDR", Skip: SkipNetworkType},
312 {Name: "macaddr_type", Query: "SELECT '08:00:2b:01:02:03'::MACADDR", Skip: SkipNetworkType},
313
314 // Geometric types
315 {Name: "point_type", Query: "SELECT point(1, 2)", Skip: SkipGeometricType},
316 {Name: "line_type", Query: "SELECT line(point(0,0), point(1,1))", Skip: SkipGeometricType},
317 {Name: "box_type", Query: "SELECT box(point(0,0), point(1,1))", Skip: SkipGeometricType},
318
319 // Range types
320 {Name: "int4range_type", Query: "SELECT '[1,10)'::int4range", Skip: SkipRangeType},
321 {Name: "daterange_type", Query: "SELECT '[2024-01-01,2024-12-31)'::daterange", Skip: SkipRangeType},
322
323 // Text search types
324 {Name: "tsvector_type", Query: "SELECT 'hello world'::tsvector", Skip: SkipTextSearch},
325 {Name: "tsquery_type", Query: "SELECT 'hello & world'::tsquery", Skip: SkipTextSearch},
326
327 // Money type (has locale issues)
328 {Name: "money_type", Query: "SELECT '12.34'::money", Skip: "money type not well supported"},
329 }
330 runQueryTests(t, tests)
331}

Callers

nothing calls this directly

Calls 1

runQueryTestsFunction · 0.85

Tested by

no test coverage detected