Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PostHog/duckgres
/ functions
Functions
5,901 in github.com/PostHog/duckgres
⨍
Functions
5,901
◇
Types & classes
803
Function
TestArrowTypeToDuckDB_Map
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:44
Function
TestArrowTypeToDuckDB_MapIntegerKeys
--- Edge cases: arrowTypeToDuckDB with composite types ---
server/flightclient/flight_executor_arrow_test.go:564
Function
TestArrowTypeToDuckDB_MapOfList
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:1239
Function
TestArrowTypeToDuckDB_MapOfMap
--- Additional arrowTypeToDuckDB edge cases ---
server/flightclient/flight_executor_arrow_test.go:1229
Function
TestArrowTypeToDuckDB_MapWithStructValues
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:53
Function
TestArrowTypeToDuckDB_NestedStruct
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:29
Function
TestArrowTypeToDuckDB_Struct
Tests for arrowTypeToDuckDB — verifies that Arrow types are mapped back to DuckDB type name strings correctly. STRUCT and MAP are currently missing an
server/flightclient/flight_executor_arrow_test.go:17
Function
TestArrowTypeToDuckDB_StructContainingList
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:573
Function
TestArrowTypeToDuckDB_StructContainingMap
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:1269
Function
TestArrowTypeToDuckDB_StructSingleField
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:1281
Function
TestArrowTypeToDuckDB_StructWithVarchar
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:585
Function
TestArtifactSinkWritesSummaryCSVAndMetrics
(t *testing.T)
tests/perf/core/sink_test.go:12
Function
TestAttachStepExecerFastStatement
TestAttachStepExecerFastStatement verifies the happy path: statements that finish within the deadline behave exactly like plain Exec/QueryRow.
server/attach_timeout_test.go:23
Function
TestAttachStepExecerInterruptsLongQuery
TestAttachStepExecerInterruptsLongQuery proves the deadline actually stops a long-running DuckDB statement: the duckdb-go driver propagates ctx cancel
server/attach_timeout_test.go:59
Function
TestAttachStepExecerReleaseSemNil
TestAttachStepExecerReleaseSemNil verifies the nil-semaphore no-op used by callers that run without the DuckLake semaphore.
server/attach_timeout_test.go:160
Function
TestAttachStepExecerWatchdogAbandonsHungCall
TestAttachStepExecerWatchdogAbandonsHungCall covers the non-interruptible case (a CGO call blocked in extension network I/O never observes duckdb_inte
server/attach_timeout_test.go:104
Function
TestAuditActionFor
TestAuditActionFor pins the resource-specific Action derivation: operators, org-warehouse, and org-user mutations each get their own prefix, and anyth
controlplane/admin/audit_test.go:14
Function
TestAuthMiddlewareDomainHardening
Domain hardening: a non-@posthog.com email (even if it would resolve to a role) is treated as unauthenticated, and an explicit email_verified=false is
controlplane/admin/authz_test.go:94
Function
TestAuthMiddlewareInternalSecretIsAdmin
(t *testing.T)
controlplane/admin/authz_test.go:38
Function
TestAuthMiddlewareRejectsUnauthenticated
(t *testing.T)
controlplane/admin/authz_test.go:150
Function
TestAuthMiddlewareSSORoleMapping
The SSO email is resolved to a role by the injected RoleResolver (in production, the operators-table lookup). Unknown emails fail closed to viewer.
controlplane/admin/authz_test.go:58
Function
TestAuthenticateChildClientSuccess
(t *testing.T)
server/worker_auth_test.go:35
Function
TestAuthenticateChildClientUnknownUserIndistinguishable
TestAuthenticateChildClientUnknownUserIndistinguishable is a regression test for the user-existence oracle: the worker used to return 28P01 for unknow
server/worker_auth_test.go:61
Function
TestAutoMemoryLimit
(t *testing.T)
server/sysinfo/sysinfo_test.go:9
Function
TestAutoMemoryLimitCached
(t *testing.T)
server/sysinfo/sysinfo_test.go:48
Function
TestAutoMemoryLimitFormat
(t *testing.T)
server/sysinfo/sysinfo_test.go:29
Function
TestBackendKeyGeneration
(t *testing.T)
server/parent_test.go:248
Function
TestBackupHeaderUsesTargetVersion
(t *testing.T)
server/ducklake/migration_test.go:438
Function
TestBackupMetadata_Integration
TestBackupMetadata_Integration verifies the backup path end-to-end against a real PostgreSQL instance. Skipped when DUCKGRES_TEST_POSTGRES_DSN is not
server/ducklake/migration_test.go:466
Function
TestBeginRateLimitedAuthAttemptRegistersAndReleases
(t *testing.T)
server/auth/policy_test.go:93
Function
TestBeginRateLimitedAuthAttemptRejectsBannedAndIncrementsMetric
(t *testing.T)
server/auth/policy_test.go:70
Function
TestBeginTransactionPublishesTxnStateBeforeConcurrentRecoveryDecidesRollback
(t *testing.T)
server/flightsqlingress/ingress_test.go:555
Function
TestBillingAckAdvancesAndIsBounded
(t *testing.T)
controlplane/compute_billing_api_test.go:209
Function
TestBillingStoreErrorsSurfaceAs500
(t *testing.T)
controlplane/compute_billing_api_test.go:252
Function
TestBillingUsageEmptyWindowWhenCursorCurrent
(t *testing.T)
controlplane/compute_billing_api_test.go:181
Function
TestBillingUsageNeverAckedServesEverything
(t *testing.T)
controlplane/compute_billing_api_test.go:164
Function
TestBillingUsageWindowAndRows
(t *testing.T)
controlplane/compute_billing_api_test.go:121
Function
TestBootstrapBundledExtensionsRunsOncePerExtensionDirectory
(t *testing.T)
server/bundled_extensions_test.go:194
Function
TestBootstrapBundledExtensionsSeedsBundledExtensions
(t *testing.T)
server/bundled_extensions_test.go:157
Function
TestBootstrapSchemaDoesNotUseUnsupportedConstraints
(t *testing.T)
tests/perf/publisher/publisher_test.go:188
Function
TestBuildAttachStmt
(t *testing.T)
server/ducklake/migration_test.go:115
Function
TestBuildCommandTagConsistency
TestBuildCommandTagConsistency verifies that buildCommandTagFromRowCount produces the same tags as buildCommandTag for DML types. This ensures the Que
server/conn_test.go:1382
Function
TestBuildCommandTagFromRowCount
Note: isIgnoredSetParameter tests have been moved to transpiler/transpiler_test.go. The transpiler package now handles SET parameter filtering via AST
server/conn_test.go:1341
Function
TestBuildConfigSecretAlwaysEmitsSessionToken
Regression for the env-inheritance hazard: a PROVIDER config secret that omits SESSION_TOKEN silently inherits a host AWS_SESSION_TOKEN env var (httpf
server/s3_secret_test.go:109
Function
TestBuildConfigSecretEmitsHTTPWhenProxySet
TestBuildConfigSecretEmitsHTTPWhenProxySet asserts the SQL produced by buildConfigSecret contains URL_STYLE 'path' / USE_SSL false when an HTTP proxy
server/s3_secret_test.go:70
Function
TestBuildCredentialChainSecretEmitsHTTPWhenProxySet
TestBuildCredentialChainSecretEmitsHTTPWhenProxySet covers the credential-chain branch, which previously only emitted USE_SSL / URL_STYLE when an expl
server/s3_secret_test.go:133
Function
TestBuildDeltaAttachStmt
(t *testing.T)
server/ducklake/migration_test.go:334
Function
TestBuildDuckDBCopyFromSQL
(t *testing.T)
server/conn_test.go:2657
Function
TestBuildDuckLakeConfigFromConfigStoreAWSProviderReturnsExpiry
The "aws" provider path brokers STS credentials, and those expire: the returned expiration is what the credential-refresh scheduler keys on to keep th
controlplane/shared_worker_activator_credentials_test.go:51
Function
TestBuildDuckLakeConfigFromConfigStoreStaticCredsNilExpiry
Static secret-ref credentials have no known expiration — the scheduler must skip them, so the path must return a nil expiry.
controlplane/shared_worker_activator_credentials_test.go:89
Function
TestBuildDuckLakePreAttachStatements
(t *testing.T)
server/server_test.go:220
Function
TestBuildSessionMetadataSQLContainsAllExpectedStatements
(t *testing.T)
server/sessionmeta/sessionmeta_test.go:103
Function
TestBuildTenantActivationPayloadBuildsDuckLakeRuntimeFromWarehouseSecrets
(t *testing.T)
controlplane/activation_payload_test.go:14
Function
TestCPDeploymentPrefix
(t *testing.T)
controlplane/live_aggregator_test.go:16
Function
TestCPReplicaSetHash
(t *testing.T)
controlplane/k8s_pool_test.go:4581
Function
TestCThreadSegfaultDiesLoudly
TestCThreadSegfaultDiesLoudly is the regression test for the production incident: a SIGSEGV on a non-Go thread must (a) kill the process instead of we
internal/crashhandler/crashhandler_test.go:73
Function
TestCacheKeyDeterministic
(t *testing.T)
cmd/cache-proxy/cache_test.go:80
Function
TestCacheProxyHealthURL
(t *testing.T)
duckdbservice/cache_proxy_test.go:64
Function
TestCancelByWorkerFansOut
TestCancelByWorkerFansOut covers the collision-safe cross-CP cancel: the serving replica kills locally if it owns the worker, else fans out to peers (
controlplane/admin/live_test.go:131
Function
TestCancelOrgConnectionRequestReleasesForeignGrantedLease
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:355
Function
TestCancelQueryDoesNotAffectOtherSessions
TestCancelQueryDoesNotAffectOtherSessions verifies that cancelling a query on one connection does not crash the server or affect other connections. Th
tests/integration/cancel_test.go:36
Function
TestCapacityMissPolicyForKnownReasons
(t *testing.T)
controlplane/control_cancel_test.go:146
Function
TestCaptureUsesGroupAnalyticsForOrg
(t *testing.T)
internal/analytics/analytics_test.go:25
Function
TestCaptureWithoutOrgOmitsGroup
(t *testing.T)
internal/analytics/analytics_test.go:52
Function
TestCatalogCombinedQueries
TestCatalogCombinedQueries tests more complex catalog queries
tests/integration/catalog_test.go:446
Function
TestCatalogFromSearchPath
(t *testing.T)
server/sqlcore/identifier_test.go:35
Function
TestCatalogInformationSchemaColumns
TestCatalogInformationSchemaColumns tests information_schema.columns
tests/integration/catalog_test.go:140
Function
TestCatalogInformationSchemaSchemata
TestCatalogInformationSchemaSchemata tests information_schema.schemata
tests/integration/catalog_test.go:175
Function
TestCatalogInformationSchemaTables
TestCatalogInformationSchemaTables tests information_schema.tables
tests/integration/catalog_test.go:118
Function
TestCatalogInformationSchemaViews
TestCatalogInformationSchemaViews tests information_schema.views
tests/integration/catalog_test.go:157
Function
TestCatalogIsNotMasked
TestCatalogIsNotMasked verifies the de-masking contract: the connection database name no longer drives current_database()/pg_catalog surfaces; they re
tests/integration/catalog_demask_test.go:38
Function
TestCatalogMissDescribeClassifiesLikePostgres
A native-fallback query that fails validation (e.g. `DESCRIBE x.y.z` against a missing schema/table — DESCRIBE is not valid PostgreSQL so it always ta
server/conn_errors_catalog_test.go:21
Function
TestCatalogPgAttribute
TestCatalogPgAttribute tests pg_catalog.pg_attribute
tests/integration/catalog_test.go:53
Function
TestCatalogPgClass
TestCatalogPgClass tests pg_catalog.pg_class
tests/integration/catalog_test.go:9
Function
TestCatalogPgDatabase
TestCatalogPgDatabase tests pg_catalog.pg_database
tests/integration/catalog_test.go:82
Function
TestCatalogPgGetSerialSequence
TestCatalogPgGetSerialSequence tests pg_get_serial_sequence function In DuckLake mode, sequences are not supported, so pg_get_serial_sequence should a
tests/integration/catalog_test.go:426
Function
TestCatalogPgNamespace
TestCatalogPgNamespace tests pg_catalog.pg_namespace
tests/integration/catalog_test.go:36
Function
TestCatalogPgRoles
TestCatalogPgRoles tests pg_catalog.pg_roles
tests/integration/catalog_test.go:94
Function
TestCatalogPgSettings
TestCatalogPgSettings tests pg_catalog.pg_settings
tests/integration/catalog_test.go:106
Function
TestCatalogPgType
TestCatalogPgType tests pg_catalog.pg_type
tests/integration/catalog_test.go:65
Function
TestCatalogPsqlCommands
TestCatalogPsqlCommands tests queries generated by psql meta-commands
tests/integration/catalog_test.go:187
Function
TestCatalogQualifiedNames
TestCatalogQualifiedNames verifies real-catalog three-part references work (with `public` mapping to DuckLake's `main` schema), and that a connection
tests/integration/catalog_demask_test.go:117
Function
TestCatalogStubs
TestCatalogStubs tests stub tables that return empty results
tests/integration/catalog_test.go:487
Function
TestCatalogSystemFunctions
TestCatalogSystemFunctions tests pg_catalog system functions
tests/integration/catalog_test.go:235
Function
TestCgoCallSegfaultDiesLoudly
TestCgoCallSegfaultDiesLoudly covers a fault inside a cgo call running on a Go-created thread (e.g. DuckDB crashing during a query executed via duckdb
internal/crashhandler/crashhandler_test.go:100
Function
TestCheckSocketDirWritable
(t *testing.T)
controlplane/validation_test.go:153
Function
TestCheckUserSecretDDL
Persistent-secret DDL must be rejected on the Flight ingress when the deployment manages user secrets via the PG protocol: over Flight the statement w
server/flightsqlingress/user_secrets_test.go:8
Function
TestCheckpointerRunRecordsFailure
(t *testing.T)
server/checkpoint_test.go:120
Function
TestCheckpointerRunRecordsSuccess
(t *testing.T)
server/checkpoint_test.go:59
Function
TestChildConfigSecurityNote
(t *testing.T)
server/parent_test.go:65
Function
TestChildConfigSerialization
(t *testing.T)
server/parent_test.go:10
Function
TestChildTrackerBasicOperations
(t *testing.T)
server/parent_test.go:102
Function
TestChildTrackerSignalAll
(t *testing.T)
server/parent_test.go:179
Function
TestChildTrackerWaitAll
(t *testing.T)
server/parent_test.go:196
Function
TestCipherRoundTrip
(t *testing.T)
server/usersecrets/classify_test.go:197
Function
TestClaimHotIdleWorkerAllowsOnlyHotIdleAtCapPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:662
Function
TestClaimHotIdleWorkerPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:235
Function
TestClaimHotIdleWorkerPostgresFiltersImage
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:340
Function
TestClaimHotIdleWorkerRespectsOrgCapPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:612
Function
TestClaimHotIdleWorkerReturnsNoIdleWhenNoHotIdleWorkerExists
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:549
← previous
next →
3,801–3,900 of 5,901, ranked by callers