MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

FunctionTestHandleProxyMetricsOnlyDoesNotRejectConcurrentOriginMisses
(t *testing.T)
cmd/cache-proxy/proxy_test.go:544
FunctionTestHandleProxyNetworkErrorStill502
TestHandleProxyNetworkErrorStill502: when the origin is fully unreachable (no HTTP response at all), 502 is still the right answer — there was no upst
cmd/cache-proxy/proxy_test.go:746
FunctionTestHandleProxyOriginFetchFailureOutcomeMetrics
(t *testing.T)
cmd/cache-proxy/proxy_test.go:449
FunctionTestHandleProxyOriginFetchInFlightMetricDuringRequest
(t *testing.T)
cmd/cache-proxy/proxy_test.go:411
FunctionTestHandleProxyOriginFetchMetrics
(t *testing.T)
cmd/cache-proxy/proxy_test.go:287
FunctionTestHandleProxyOriginRetryMetricCountsPreBackoffCancellationAsCanceled
(t *testing.T)
cmd/cache-proxy/proxy_test.go:374
FunctionTestHandleProxyOriginRetryMetricDoesNotCountCanceledBackoff
(t *testing.T)
cmd/cache-proxy/proxy_test.go:321
FunctionTestHandleProxyRejectsNonAbsoluteURL
(t *testing.T)
cmd/cache-proxy/proxy_test.go:186
FunctionTestHandleProxyRetriesOrigin503AndForwardsFinalFailure
(t *testing.T)
cmd/cache-proxy/proxy_test.go:258
FunctionTestHandleProxyRetriesOrigin503ThenCachesSuccess
(t *testing.T)
cmd/cache-proxy/proxy_test.go:217
FunctionTestHandleQueryAbortedRecoveryPreservesAlterViewFallback
(t *testing.T)
server/conn_test.go:1785
FunctionTestHandleQueryEmitsCorrectSQLSTATEOnDuckDBErrors
TestHandleQueryEmitsCorrectSQLSTATEOnDuckDBErrors exercises the full handleQuery → wire-frame path so PG-aware clients (psycopg2, SQLAlchemy, dlt) rec
server/conn_test.go:1618
FunctionTestHandleStartup_GSSENCStallTimesOut
(t *testing.T)
server/startup_timeout_test.go:13
FunctionTestHandoverChildCrashRecovery
TestHandoverChildCrashRecovery verifies that when the upgraded child process dies during startup, the old control plane recovers from the RELOADING st
tests/controlplane/controlplane_test.go:581
FunctionTestHandoverChildCrashThenRetry
TestHandoverChildCrashThenRetry verifies that after recovering from a failed upgrade (child crash), a subsequent SIGUSR1 successfully completes a full
tests/controlplane/controlplane_test.go:635
FunctionTestHandoverConcurrentConnections
(t *testing.T)
tests/controlplane/controlplane_test.go:464
FunctionTestHandoverDrainsBeforeExit
TestHandoverDrainsBeforeExit verifies that the old control plane process stays alive after an upgrade to drain in-flight connections, rather than exit
tests/controlplane/controlplane_test.go:702
FunctionTestHandoverNewConnections
(t *testing.T)
tests/controlplane/controlplane_test.go:392
FunctionTestHandoverNewConnectionsDuringTransition
(t *testing.T)
tests/controlplane/controlplane_test.go:416
FunctionTestHandoverPreservesActiveQuery
(t *testing.T)
tests/controlplane/controlplane_test.go:339
FunctionTestHasAttachedCatalogEmbedsCatalogNameWithoutBoundArgs
(t *testing.T)
server/session_database_metadata_test.go:79
FunctionTestHasAttachedCatalogUsesEmbeddedCatalogLiteral
(t *testing.T)
server/session_database_metadata_remote_test.go:88
FunctionTestHasCacheHTTPFS
(t *testing.T)
server/server_test.go:674
FunctionTestHashPassword
(t *testing.T)
controlplane/configstore/store_test.go:446
FunctionTestHealthCheckAcceptsMismatchedEpochInSharedWarmMode
(t *testing.T)
duckdbservice/flight_handler_test.go:424
FunctionTestHealthCheckBlocksUntilWarmup
(t *testing.T)
duckdbservice/flight_handler_test.go:315
FunctionTestHealthCheckFailsAfterCPRollingRestart
TestHealthCheckFailsAfterCPRollingRestart reproduces the epoch mismatch that causes worker pod cascading deaths during a CP rolling update. Scenario:
duckdbservice/activation_test.go:403
FunctionTestHealthCheckFailureCountingCleanupOnWorkerExit
(t *testing.T)
controlplane/worker_mgr_process_test.go:79
FunctionTestHealthCheckFailureCountingDoesNotTriggerBelowThreshold
(t *testing.T)
controlplane/worker_mgr_process_test.go:67
FunctionTestHealthCheckFailureCountingResetsOnSuccess
(t *testing.T)
controlplane/worker_mgr_process_test.go:20
FunctionTestHealthCheckFailureCountingTriggersAtThreshold
(t *testing.T)
controlplane/worker_mgr_process_test.go:46
FunctionTestHealthCheckLoopDetectsCrashedWorker
(t *testing.T)
controlplane/worker_mgr_process_test.go:193
FunctionTestHealthCheckReportsDraining
(t *testing.T)
duckdbservice/flight_handler_test.go:393
FunctionTestHealthCheckRespondsWhenQueryProgressBlocks
(t *testing.T)
duckdbservice/progress_test.go:61
FunctionTestHealthCheckReturnsImmediatelyAfterWarmup
(t *testing.T)
duckdbservice/flight_handler_test.go:365
FunctionTestHealthHandlerReturnsOKWhenHealthy
(t *testing.T)
controlplane/multitenant_test.go:27
FunctionTestHealthHandlerReturnsServiceUnavailableWhenUnhealthy
(t *testing.T)
controlplane/multitenant_test.go:13
FunctionTestHexMetadataQueryDoesNotLeakDuckLakeIntoOtherCatalog
(t *testing.T)
server/session_database_metadata_test.go:431
FunctionTestHighBitHashInsertIntoBigint
(t *testing.T)
server/querylog_test.go:185
FunctionTestHighBitHashRejectsUbigint
TestHighBitHashRejectsUbigint documents that DuckDB's UBIGINT column rejects negative int64 values — this is the DuckDB behavior that motivated switch
server/querylog_test.go:221
FunctionTestInFlightScanDiesOnCredentialRotation
TestInFlightScanDiesOnCredentialRotation PINS a stock-DuckDB limitation that the control plane's STS freshness floor (stsCacheSafetyMargin in controlp
tests/integration/credential_rotation_pin_test.go:258
FunctionTestInFlightScanSurvivesRotationWithPatchedHTTPFS
TestInFlightScanSurvivesRotationWithPatchedHTTPFS asserts the PostHog httpfs fork's mid-statement credential refresh: on an auth failure (400/403) in
tests/integration/credential_rotation_pin_test.go:296
FunctionTestInformationSchemaCompatViewsOnlyExposeSelectedCatalog
(t *testing.T)
server/session_database_metadata_test.go:242
FunctionTestInformationSchemaCompatViewsUseCurrentDatabaseForCatalogNames
(t *testing.T)
server/catalog_test.go:404
FunctionTestInformationSchemaSequencesAndRoutinesCompatViews
(t *testing.T)
server/catalog_test.go:464
FunctionTestInformationSchemaTransform_SequencesAndRoutines
Fix: information_schema.sequences and .routines passed through to DuckDB, which has neither — route them to compat views like columns/tables/etc.
transpiler/transform/wiring_walk_test.go:137
FunctionTestInitConnsMap
(t *testing.T)
server/conn_test.go:3929
FunctionTestInitPgCatalogIsAirgapSafe
Worker pods run initPgCatalog during warmup in an environment where DuckDB extension downloads either fail or — worse — hang for minutes (the egress p
server/pg_catalog_airgap_test.go:40
FunctionTestInitSearchPath
(t *testing.T)
duckdbservice/service_test.go:164
FunctionTestInitSessionDatabaseMetadataBatchesPerSessionStatements
(t *testing.T)
server/sessionmeta/sessionmeta_test.go:80
FunctionTestInitSessionDatabaseMetadataExcludesInternalDuckLakeMetadataCatalogs
(t *testing.T)
server/session_database_metadata_test.go:207
FunctionTestInitSessionDatabaseMetadataOverridesCurrentDatabaseAndPgDatabase
(t *testing.T)
server/session_database_metadata_test.go:100
FunctionTestInitSessionDatabaseMetadataOverridesInformationSchemaCatalogColumns
(t *testing.T)
server/session_database_metadata_test.go:136
FunctionTestInjectPostgresApplicationName
(t *testing.T)
server/ducklake/migration_test.go:60
FunctionTestInjectPostgresKeepalive
(t *testing.T)
server/ducklake/migration_test.go:14
FunctionTestInstalled
(t *testing.T)
internal/crashhandler/crashhandler_test.go:63
FunctionTestIntentMatcherRejectsMissingVariant
(t *testing.T)
tests/perf/core/intent_matcher_test.go:21
FunctionTestIntentMatcherReturnsProtocolVariant
(t *testing.T)
tests/perf/core/intent_matcher_test.go:5
FunctionTestInterpolateArgs
(t *testing.T)
server/flightclient/interpolate_args_test.go:5
FunctionTestIntervalTypmodCast
TestIntervalTypmodCast verifies that a field-qualified interval cast ('2'::interval day) is rewritten to a DuckDB-executable form rather than the depa
transpiler/cast_fixup_test.go:11
FunctionTestIsAlterTableNotTableError
(t *testing.T)
server/transient_test.go:104
FunctionTestIsAlterTableNotTableErrorDoesNotTreatMissingObjectSuggestionAsWrongType
(t *testing.T)
server/transient_test.go:502
FunctionTestIsCallerCancellation
TestIsCallerCancellation pins down the discriminator that makes the difference between "user pressed Ctrl-C" and "the worker died and gRPC surfaced a
server/transient_test.go:563
FunctionTestIsConnectionBroken
(t *testing.T)
server/conn_test.go:581
FunctionTestIsCopyFromStdinDescriptor
(t *testing.T)
duckdbservice/copy_from_stdin_test.go:23
FunctionTestIsDMLReturning
(t *testing.T)
server/conn_test.go:1179
FunctionTestIsDropTableOnViewError
(t *testing.T)
server/transient_test.go:526
FunctionTestIsDuckDBUtilityCommand
(t *testing.T)
server/conn_test.go:24
FunctionTestIsDuckLakeTransactionConflict
(t *testing.T)
duckdbservice/transient_test.go:117
FunctionTestIsEmptyQuery
(t *testing.T)
server/conn_test.go:61
FunctionTestIsEphemeralPostgresRuntimeSchema
(t *testing.T)
tests/integration/harness_test.go:52
FunctionTestIsFetchForwardOnly
(t *testing.T)
server/conn_test.go:3730
FunctionTestIsMissingDuckLakePoolSettingError
(t *testing.T)
server/server_test.go:280
FunctionTestIsQueryLogSelfReferential
(t *testing.T)
server/querylog_test.go:97
FunctionTestIsReadOnlySQL
(t *testing.T)
controlplane/admin/authz_test.go:206
FunctionTestIsReservedName
(t *testing.T)
server/usersecrets/classify_test.go:126
FunctionTestIsTransactionControlStmt
(t *testing.T)
duckdbservice/transient_test.go:10
FunctionTestIsTransientDuckLakeError
(t *testing.T)
server/transient_test.go:15
FunctionTestIsTransientDuckLakeError
(t *testing.T)
duckdbservice/transient_test.go:41
FunctionTestIsUserQueryError
TestIsUserQueryError pins the SQLSTATE-class-based discriminator that splits Query execution log lines between Info ("user wrote something that doesn'
server/transient_test.go:379
FunctionTestIsValidCacheKey
(t *testing.T)
cmd/cache-proxy/cache_test.go:52
FunctionTestIsValidDuckLakeSpecVersion
(t *testing.T)
controlplane/admin/api_test.go:1540
FunctionTestIsWithDML
(t *testing.T)
server/conn_test.go:1250
FunctionTestIsWorkerConnPoolTimeoutError
(t *testing.T)
controlplane/session_mgr_test.go:735
FunctionTestIsWorkerSessionCapError
(t *testing.T)
controlplane/session_mgr_test.go:86
FunctionTestJDBCConcurrentVersionQueries
TestJDBCConcurrentVersionQueries tests concurrent version() queries across multiple connections, simulating a connection pool.
tests/integration/jdbc_test.go:97
FunctionTestJDBCDatabaseMetaDataQueries
TestJDBCDatabaseMetaDataQueries tests queries similar to what JDBC DatabaseMetaData methods generate (getTables, getSchemas, etc.).
tests/integration/jdbc_test.go:191
FunctionTestJDBCMetabaseProbeQueries
TestJDBCMetabaseProbeQueries tests the specific queries Metabase sends when probing a connection, using the extended query protocol.
tests/integration/jdbc_test.go:139
FunctionTestJDBCPreparedStatementReuse
TestJDBCPreparedStatementReuse tests reusing prepared statements, which is a common JDBC pattern.
tests/integration/jdbc_test.go:253
FunctionTestJDBCRapidReconnect
TestJDBCRapidReconnect tests rapid connect/query/disconnect cycles, which can trigger timing issues in the protocol handshake.
tests/integration/jdbc_test.go:301
FunctionTestJDBCVersionQuery
TestJDBCVersionQuery tests SELECT version() via extended query protocol, which is the pattern JDBC/Metabase uses on connection and that hangs sporadic
tests/integration/jdbc_test.go:33
FunctionTestJanitorLeaderManagerReContendsAfterLosingLeadership
Regression for the elector-never-restarts bug: when Run returns (lease lost), the manager must re-contend by invoking Run again, not stay out of the e
controlplane/janitor_leader_k8s_test.go:68
FunctionTestJanitorLeaderManagerStopCancelsLeaderElection
(t *testing.T)
controlplane/janitor_leader_k8s_test.go:46
FunctionTestJanitorLeaderManagerStopHaltsReContendLoop
After Stop, the re-contend loop must terminate (no further Run invocations).
controlplane/janitor_leader_k8s_test.go:90
FunctionTestJanitorStuckSpawningCutoffCoversDetachedSpawnBudget
Audit H1 regression test. The detached spawn+activate path budgets workerSpawnActivateTimeout (pod-ready wait of workerPodReadyTimeout — which may in
controlplane/janitor_spawn_budget_test.go:31
FunctionTestK8sPoolActivateReservedWorkerHeartbeatsActivatingRow
Regression for (b): a long-running activation must heartbeat its durable activating row so the leader stuck-activating reaper (which keys off updated_
controlplane/k8s_pool_test.go:1127
FunctionTestK8sPoolActivateReservedWorkerHotPersistFailureReturnsError
Regression for fix #4: when the durable Hot persist fails during activation, ActivateReservedWorker must return an error and NOT advance the worker to
controlplane/k8s_pool_test.go:1100
FunctionTestK8sPoolActivateReservedWorkerPersistsActivatingThenHotWorkerRecord
(t *testing.T)
controlplane/k8s_pool_test.go:1622
FunctionTestK8sPoolActivateReservedWorkerRetiresOnFailure
(t *testing.T)
controlplane/k8s_pool_test.go:1207
FunctionTestK8sPoolActivateReservedWorkerTransitionsToHot
(t *testing.T)
controlplane/k8s_pool_test.go:1172
← previousnext →4,501–4,600 of 5,901, ranked by callers