MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

FunctionTestArrowTypeToDuckDB_Map
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:44
FunctionTestArrowTypeToDuckDB_MapIntegerKeys
--- Edge cases: arrowTypeToDuckDB with composite types ---
server/flightclient/flight_executor_arrow_test.go:564
FunctionTestArrowTypeToDuckDB_MapOfList
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:1239
FunctionTestArrowTypeToDuckDB_MapOfMap
--- Additional arrowTypeToDuckDB edge cases ---
server/flightclient/flight_executor_arrow_test.go:1229
FunctionTestArrowTypeToDuckDB_MapWithStructValues
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:53
FunctionTestArrowTypeToDuckDB_NestedStruct
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:29
FunctionTestArrowTypeToDuckDB_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
FunctionTestArrowTypeToDuckDB_StructContainingList
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:573
FunctionTestArrowTypeToDuckDB_StructContainingMap
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:1269
FunctionTestArrowTypeToDuckDB_StructSingleField
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:1281
FunctionTestArrowTypeToDuckDB_StructWithVarchar
(t *testing.T)
server/flightclient/flight_executor_arrow_test.go:585
FunctionTestArtifactSinkWritesSummaryCSVAndMetrics
(t *testing.T)
tests/perf/core/sink_test.go:12
FunctionTestAttachStepExecerFastStatement
TestAttachStepExecerFastStatement verifies the happy path: statements that finish within the deadline behave exactly like plain Exec/QueryRow.
server/attach_timeout_test.go:23
FunctionTestAttachStepExecerInterruptsLongQuery
TestAttachStepExecerInterruptsLongQuery proves the deadline actually stops a long-running DuckDB statement: the duckdb-go driver propagates ctx cancel
server/attach_timeout_test.go:59
FunctionTestAttachStepExecerReleaseSemNil
TestAttachStepExecerReleaseSemNil verifies the nil-semaphore no-op used by callers that run without the DuckLake semaphore.
server/attach_timeout_test.go:160
FunctionTestAttachStepExecerWatchdogAbandonsHungCall
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
FunctionTestAuditActionFor
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
FunctionTestAuthMiddlewareDomainHardening
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
FunctionTestAuthMiddlewareInternalSecretIsAdmin
(t *testing.T)
controlplane/admin/authz_test.go:38
FunctionTestAuthMiddlewareRejectsUnauthenticated
(t *testing.T)
controlplane/admin/authz_test.go:150
FunctionTestAuthMiddlewareSSORoleMapping
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
FunctionTestAuthenticateChildClientSuccess
(t *testing.T)
server/worker_auth_test.go:35
FunctionTestAuthenticateChildClientUnknownUserIndistinguishable
TestAuthenticateChildClientUnknownUserIndistinguishable is a regression test for the user-existence oracle: the worker used to return 28P01 for unknow
server/worker_auth_test.go:61
FunctionTestAutoMemoryLimit
(t *testing.T)
server/sysinfo/sysinfo_test.go:9
FunctionTestAutoMemoryLimitCached
(t *testing.T)
server/sysinfo/sysinfo_test.go:48
FunctionTestAutoMemoryLimitFormat
(t *testing.T)
server/sysinfo/sysinfo_test.go:29
FunctionTestBackendKeyGeneration
(t *testing.T)
server/parent_test.go:248
FunctionTestBackupHeaderUsesTargetVersion
(t *testing.T)
server/ducklake/migration_test.go:438
FunctionTestBackupMetadata_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
FunctionTestBeginRateLimitedAuthAttemptRegistersAndReleases
(t *testing.T)
server/auth/policy_test.go:93
FunctionTestBeginRateLimitedAuthAttemptRejectsBannedAndIncrementsMetric
(t *testing.T)
server/auth/policy_test.go:70
FunctionTestBeginTransactionPublishesTxnStateBeforeConcurrentRecoveryDecidesRollback
(t *testing.T)
server/flightsqlingress/ingress_test.go:555
FunctionTestBillingAckAdvancesAndIsBounded
(t *testing.T)
controlplane/compute_billing_api_test.go:209
FunctionTestBillingStoreErrorsSurfaceAs500
(t *testing.T)
controlplane/compute_billing_api_test.go:252
FunctionTestBillingUsageEmptyWindowWhenCursorCurrent
(t *testing.T)
controlplane/compute_billing_api_test.go:181
FunctionTestBillingUsageNeverAckedServesEverything
(t *testing.T)
controlplane/compute_billing_api_test.go:164
FunctionTestBillingUsageWindowAndRows
(t *testing.T)
controlplane/compute_billing_api_test.go:121
FunctionTestBootstrapBundledExtensionsRunsOncePerExtensionDirectory
(t *testing.T)
server/bundled_extensions_test.go:194
FunctionTestBootstrapBundledExtensionsSeedsBundledExtensions
(t *testing.T)
server/bundled_extensions_test.go:157
FunctionTestBootstrapSchemaDoesNotUseUnsupportedConstraints
(t *testing.T)
tests/perf/publisher/publisher_test.go:188
FunctionTestBuildAttachStmt
(t *testing.T)
server/ducklake/migration_test.go:115
FunctionTestBuildCommandTagConsistency
TestBuildCommandTagConsistency verifies that buildCommandTagFromRowCount produces the same tags as buildCommandTag for DML types. This ensures the Que
server/conn_test.go:1382
FunctionTestBuildCommandTagFromRowCount
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
FunctionTestBuildConfigSecretAlwaysEmitsSessionToken
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
FunctionTestBuildConfigSecretEmitsHTTPWhenProxySet
TestBuildConfigSecretEmitsHTTPWhenProxySet asserts the SQL produced by buildConfigSecret contains URL_STYLE 'path' / USE_SSL false when an HTTP proxy
server/s3_secret_test.go:70
FunctionTestBuildCredentialChainSecretEmitsHTTPWhenProxySet
TestBuildCredentialChainSecretEmitsHTTPWhenProxySet covers the credential-chain branch, which previously only emitted USE_SSL / URL_STYLE when an expl
server/s3_secret_test.go:133
FunctionTestBuildDeltaAttachStmt
(t *testing.T)
server/ducklake/migration_test.go:334
FunctionTestBuildDuckDBCopyFromSQL
(t *testing.T)
server/conn_test.go:2657
FunctionTestBuildDuckLakeConfigFromConfigStoreAWSProviderReturnsExpiry
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
FunctionTestBuildDuckLakeConfigFromConfigStoreStaticCredsNilExpiry
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
FunctionTestBuildDuckLakePreAttachStatements
(t *testing.T)
server/server_test.go:220
FunctionTestBuildSessionMetadataSQLContainsAllExpectedStatements
(t *testing.T)
server/sessionmeta/sessionmeta_test.go:103
FunctionTestBuildTenantActivationPayloadBuildsDuckLakeRuntimeFromWarehouseSecrets
(t *testing.T)
controlplane/activation_payload_test.go:14
FunctionTestCPDeploymentPrefix
(t *testing.T)
controlplane/live_aggregator_test.go:16
FunctionTestCPReplicaSetHash
(t *testing.T)
controlplane/k8s_pool_test.go:4581
FunctionTestCThreadSegfaultDiesLoudly
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
FunctionTestCacheKeyDeterministic
(t *testing.T)
cmd/cache-proxy/cache_test.go:80
FunctionTestCacheProxyHealthURL
(t *testing.T)
duckdbservice/cache_proxy_test.go:64
FunctionTestCancelByWorkerFansOut
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
FunctionTestCancelOrgConnectionRequestReleasesForeignGrantedLease
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:355
FunctionTestCancelQueryDoesNotAffectOtherSessions
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
FunctionTestCapacityMissPolicyForKnownReasons
(t *testing.T)
controlplane/control_cancel_test.go:146
FunctionTestCaptureUsesGroupAnalyticsForOrg
(t *testing.T)
internal/analytics/analytics_test.go:25
FunctionTestCaptureWithoutOrgOmitsGroup
(t *testing.T)
internal/analytics/analytics_test.go:52
FunctionTestCatalogCombinedQueries
TestCatalogCombinedQueries tests more complex catalog queries
tests/integration/catalog_test.go:446
FunctionTestCatalogFromSearchPath
(t *testing.T)
server/sqlcore/identifier_test.go:35
FunctionTestCatalogInformationSchemaColumns
TestCatalogInformationSchemaColumns tests information_schema.columns
tests/integration/catalog_test.go:140
FunctionTestCatalogInformationSchemaSchemata
TestCatalogInformationSchemaSchemata tests information_schema.schemata
tests/integration/catalog_test.go:175
FunctionTestCatalogInformationSchemaTables
TestCatalogInformationSchemaTables tests information_schema.tables
tests/integration/catalog_test.go:118
FunctionTestCatalogInformationSchemaViews
TestCatalogInformationSchemaViews tests information_schema.views
tests/integration/catalog_test.go:157
FunctionTestCatalogIsNotMasked
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
FunctionTestCatalogMissDescribeClassifiesLikePostgres
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
FunctionTestCatalogPgAttribute
TestCatalogPgAttribute tests pg_catalog.pg_attribute
tests/integration/catalog_test.go:53
FunctionTestCatalogPgClass
TestCatalogPgClass tests pg_catalog.pg_class
tests/integration/catalog_test.go:9
FunctionTestCatalogPgDatabase
TestCatalogPgDatabase tests pg_catalog.pg_database
tests/integration/catalog_test.go:82
FunctionTestCatalogPgGetSerialSequence
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
FunctionTestCatalogPgNamespace
TestCatalogPgNamespace tests pg_catalog.pg_namespace
tests/integration/catalog_test.go:36
FunctionTestCatalogPgRoles
TestCatalogPgRoles tests pg_catalog.pg_roles
tests/integration/catalog_test.go:94
FunctionTestCatalogPgSettings
TestCatalogPgSettings tests pg_catalog.pg_settings
tests/integration/catalog_test.go:106
FunctionTestCatalogPgType
TestCatalogPgType tests pg_catalog.pg_type
tests/integration/catalog_test.go:65
FunctionTestCatalogPsqlCommands
TestCatalogPsqlCommands tests queries generated by psql meta-commands
tests/integration/catalog_test.go:187
FunctionTestCatalogQualifiedNames
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
FunctionTestCatalogStubs
TestCatalogStubs tests stub tables that return empty results
tests/integration/catalog_test.go:487
FunctionTestCatalogSystemFunctions
TestCatalogSystemFunctions tests pg_catalog system functions
tests/integration/catalog_test.go:235
FunctionTestCgoCallSegfaultDiesLoudly
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
FunctionTestCheckSocketDirWritable
(t *testing.T)
controlplane/validation_test.go:153
FunctionTestCheckUserSecretDDL
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
FunctionTestCheckpointerRunRecordsFailure
(t *testing.T)
server/checkpoint_test.go:120
FunctionTestCheckpointerRunRecordsSuccess
(t *testing.T)
server/checkpoint_test.go:59
FunctionTestChildConfigSecurityNote
(t *testing.T)
server/parent_test.go:65
FunctionTestChildConfigSerialization
(t *testing.T)
server/parent_test.go:10
FunctionTestChildTrackerBasicOperations
(t *testing.T)
server/parent_test.go:102
FunctionTestChildTrackerSignalAll
(t *testing.T)
server/parent_test.go:179
FunctionTestChildTrackerWaitAll
(t *testing.T)
server/parent_test.go:196
FunctionTestCipherRoundTrip
(t *testing.T)
server/usersecrets/classify_test.go:197
FunctionTestClaimHotIdleWorkerAllowsOnlyHotIdleAtCapPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:662
FunctionTestClaimHotIdleWorkerPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:235
FunctionTestClaimHotIdleWorkerPostgresFiltersImage
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:340
FunctionTestClaimHotIdleWorkerRespectsOrgCapPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:612
FunctionTestClaimHotIdleWorkerReturnsNoIdleWhenNoHotIdleWorkerExists
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:549
← previousnext →3,801–3,900 of 5,901, ranked by callers