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
TestOnConflictTransform_FivetranPattern
(t *testing.T)
transpiler/transform/onconflict_test.go:702
Function
TestOnConflictTransform_InsertClauseValues
(t *testing.T)
transpiler/transform/onconflict_test.go:622
Function
TestOnConflictTransform_InsertSelectDoNothing
(t *testing.T)
transpiler/transform/onconflict_test.go:765
Function
TestOnConflictTransform_JoinCondition
(t *testing.T)
transpiler/transform/onconflict_test.go:510
Function
TestOnConflictTransform_MergeWhenClauses
(t *testing.T)
transpiler/transform/onconflict_test.go:359
Function
TestOnConflictTransform_Name
(t *testing.T)
transpiler/transform/onconflict_test.go:10
Function
TestOnConflictTransform_NoTransformCases
(t *testing.T)
transpiler/transform/onconflict_test.go:263
Function
TestOnConflictTransform_NonDuckLakeMode
(t *testing.T)
transpiler/transform/onconflict_test.go:17
Function
TestOnConflictTransform_PreservesTableName
(t *testing.T)
transpiler/transform/onconflict_test.go:308
Function
TestOnConflictTransform_SourceSubquery
(t *testing.T)
transpiler/transform/onconflict_test.go:440
Function
TestOnWorkerCrash_ClosesConnections
(t *testing.T)
controlplane/session_mgr_test.go:192
Function
TestOnWorkerCrash_MarksExecutorsDead
(t *testing.T)
controlplane/session_mgr_test.go:153
Function
TestOnWorkerCrash_MultipleSessions
(t *testing.T)
controlplane/session_mgr_test.go:219
Function
TestOpenBaseDBCreatesDataDir
(t *testing.T)
server/server_test.go:730
Function
TestOpenBaseDBFilePersistence
(t *testing.T)
server/server_test.go:595
Function
TestOpenBaseDBFilePersistenceFallsBackWithoutDataDir
(t *testing.T)
server/server_test.go:632
Function
TestOpenBaseDBFilePersistenceFallsBackWithoutUsername
(t *testing.T)
server/server_test.go:653
Function
TestOpenBaseDBFilePersistenceRejectsPathTraversal
(t *testing.T)
server/server_test.go:699
Function
TestOpenBaseDBInMemoryByDefault
(t *testing.T)
server/server_test.go:577
Function
TestOpenCountsHitOpenFileDoesNot
TestOpenCountsHitOpenFileDoesNot locks in the metric split: serving a hit via Open records a cache hit; serving a freshly-fetched miss via openFile do
cmd/cache-proxy/cache_test.go:337
Function
TestOperatorTransform_AggFilter
(t *testing.T)
transpiler/transform/wiring_ops_test.go:53
Function
TestOperatorTransform_AggOrder
(t *testing.T)
transpiler/transform/wiring_ops_test.go:61
Function
TestOperatorTransform_ArrayContainsUnchanged
(t *testing.T)
transpiler/transform/literals_test.go:76
Function
TestOperatorTransform_ArrayExpr
(t *testing.T)
transpiler/transform/wiring_ops_test.go:88
Function
TestOperatorTransform_DeleteReturning
(t *testing.T)
transpiler/transform/wiring_ops_test.go:37
Function
TestOperatorTransform_DeleteUsing
(t *testing.T)
transpiler/transform/wiring_ops_test.go:45
Function
TestOperatorTransform_DistinctOn
(t *testing.T)
transpiler/transform/wiring_ops_test.go:99
Function
TestOperatorTransform_DoubleArrowConcatUnchanged
(t *testing.T)
transpiler/transform/operators_jsonb_concat_test.go:151
Function
TestOperatorTransform_InlineWindowDef
(t *testing.T)
transpiler/transform/wiring_ops_test.go:69
Function
TestOperatorTransform_InsertReturning
(t *testing.T)
transpiler/transform/wiring_ops_test.go:21
Function
TestOperatorTransform_JSONBConcatArrays
(t *testing.T)
transpiler/transform/operators_jsonb_concat_test.go:61
Function
TestOperatorTransform_JSONBConcatBareArrowOperands
(t *testing.T)
transpiler/transform/operators_jsonb_concat_test.go:142
Function
TestOperatorTransform_JSONBConcatChainedArrowRewritten
(t *testing.T)
transpiler/transform/operators_jsonb_concat_test.go:79
Function
TestOperatorTransform_JSONBConcatDeparses
(t *testing.T)
transpiler/transform/operators_jsonb_concat_test.go:164
Function
TestOperatorTransform_JSONBConcatMixedOperand
(t *testing.T)
transpiler/transform/operators_jsonb_concat_test.go:73
Function
TestOperatorTransform_JSONBConcatObjects
(t *testing.T)
transpiler/transform/operators_jsonb_concat_test.go:57
Function
TestOperatorTransform_JSONBConcatToJSONFuncOperands
(t *testing.T)
transpiler/transform/operators_jsonb_concat_test.go:125
Function
TestOperatorTransform_JSONBConcatUpdateSet
(t *testing.T)
transpiler/transform/operators_jsonb_concat_test.go:67
Function
TestOperatorTransform_JSONBContains
jsonb || rewrite coverage lives in operators_jsonb_concat_test.go.
transpiler/transform/literals_test.go:68
Function
TestOperatorTransform_JSONPathExtractText
(t *testing.T)
transpiler/transform/literals_test.go:88
Function
TestOperatorTransform_NamedWindowClause
(t *testing.T)
transpiler/transform/wiring_ops_test.go:80
Function
TestOperatorTransform_PlainDistinctUntouched
(t *testing.T)
transpiler/transform/wiring_ops_test.go:107
Function
TestOperatorTransform_StringConcatUnchanged
(t *testing.T)
transpiler/transform/operators_jsonb_concat_test.go:92
Function
TestOperatorTransform_TextReturningJSONFuncConcatUnchanged
(t *testing.T)
transpiler/transform/operators_jsonb_concat_test.go:104
Function
TestOperatorTransform_UpdateReturning
(t *testing.T)
transpiler/transform/wiring_ops_test.go:29
Function
TestOperatorTransform_ValuesLists
Regression tests for expression positions the OperatorTransform manual walk used to miss. An untransformed `~` binds to DuckDB's regexp_full_match, si
transpiler/transform/wiring_ops_test.go:13
Function
TestOrgAcquireGateCancelledWaiterIsSkipped
A waiter whose context is cancelled while queued must not deadlock the gate: release() skips it and grants to the next live waiter.
controlplane/org_acquire_gate_test.go:64
Function
TestOrgAcquireGateFIFOOrder
The gate must grant ownership to one holder at a time and release to waiters in FIFO arrival order — this is what stops a later connection from snatch
controlplane/org_acquire_gate_test.go:15
Function
TestOrgConnectionAdmissionMetricsObserveAttemptsAndQueueShape
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:688
Function
TestOrgConnectionLeasesChargeLegacyEmptyUserLeaseAgainstUserBudget
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:776
Function
TestOrgConnectionLeasesChargeLegacyZeroVCPULeaseAsOneVCPU
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:739
Function
TestOrgConnectionLeasesEnforceClusterWideLimit
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:813
Function
TestOrgConnectionLeasesEnforceOrgVCPUBudget
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:32
Function
TestOrgConnectionLeasesEnforceUserVCPUBudget
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:96
Function
TestOrgConnectionLeasesIgnoreExpiredControlPlaneOwners
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:991
Function
TestOrgConnectionLeasesOrgCapStopsAtFirstUnblockedUserHead
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:508
Function
TestOrgConnectionLeasesOutOfOrderPollGrantsOldestEligibleUserHead
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:303
Function
TestOrgConnectionLeasesPreserveFIFOAcrossControlPlanes
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:886
Function
TestOrgConnectionLeasesQueueUsesEachUsersOwnLimit
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:227
Function
TestOrgConnectionLeasesReordersUserQueueAfterHeadGranted
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:617
Function
TestOrgConnectionLeasesUserCapDoesNotBlockOtherUsers
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:149
Function
TestOrgConnectionLeasesUserCapSkipDoesNotBypassSameUserFIFO
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:416
Function
TestOrgConnectionQueueUsesDatabaseInsertionTimeForFIFO
(t *testing.T)
tests/configstore/org_connection_limiter_test.go:939
Function
TestOrgDefaultWorkerMinHotIdle
(t *testing.T)
controlplane/configstore/store_test.go:554
Function
TestOrgDefaultWorkerProfile
(t *testing.T)
controlplane/configstore/store_test.go:514
Function
TestOrgReservedPoolAbandonedSpawnActivationFailureRetiresWorker
If the requester abandons mid-spawn and the detached activation then FAILS, the worker must be retired exactly like the synchronous activation-failure
controlplane/org_reserved_pool_test.go:540
Function
TestOrgReservedPoolAbandonedSpawnParksHotIdleAndIsReclaimed
A requester that gives up (ctx cancelled) mid-spawn must NOT doom the spawn: the spawn+activate continues on its detached context, the finished worker
controlplane/org_reserved_pool_test.go:336
Function
TestOrgReservedPoolAcquireFailsClearlyAtOrgCap
At the org's max concurrent workers with all of them busy, AcquireWorker must fail FAST with the clear org-cap message — not busy-wait until the clien
controlplane/org_reserved_pool_test.go:291
Function
TestOrgReservedPoolAcquireObservesPhaseMetrics
TestOrgReservedPoolAcquireObservesPhaseMetrics asserts a successful slow-path acquisition (no idle worker → gate → spawn → activate) records one sampl
controlplane/acquire_metrics_test.go:72
Function
TestOrgReservedPoolAcquireReservesOrgWorker
(t *testing.T)
controlplane/org_reserved_pool_test.go:16
Function
TestOrgReservedPoolAcquireSkipsOtherOrgsWorkers
(t *testing.T)
controlplane/org_reserved_pool_test.go:54
Function
TestOrgReservedPoolAcquireUnboundedWhenMaxWorkersZero
TestOrgReservedPoolAcquireUnboundedWhenMaxWorkersZero confirms that MaxWorkers == 0 means "no per-org cap" in K8s mode. The load test that motivated t
controlplane/org_reserved_pool_test.go:248
Function
TestOrgReservedPoolColdBurstSpawnsInParallel
A cold burst of N waiters under the org cap must ramp N spawns IN PARALLEL: the per-org FIFO gate covers only the short claim/slot decision, not the m
controlplane/org_reserved_pool_test.go:472
Function
TestOrgReservedPoolReleaseWorkerTransitionsToHotIdleOnLastSession
(t *testing.T)
controlplane/org_reserved_pool_test.go:136
Function
TestOrgReservedPoolWorkerCount
TestOrgReservedPoolWorkerCount covers the per-org worker count surfaced to the admin Overview load bars: it counts this org's cap-counting (Hot) worke
controlplane/org_reserved_pool_test.go:102
Function
TestOrgReservedWorkerPoolAcquireActivatesReservedWorkerWhenEnabledWithOrgConfig
(t *testing.T)
controlplane/org_reserved_pool_test.go:166
Function
TestOrgReservedWorkerPoolAcquireDelegatesActivationWithoutCachedTenantRuntime
(t *testing.T)
controlplane/org_reserved_pool_test.go:202
Function
TestOrgRoutedSessionProviderConcurrentDestroys
(t *testing.T)
controlplane/flight_ingress_test.go:156
Function
TestOrgRoutedSessionProviderDestroySessionRemovesPid
(t *testing.T)
controlplane/flight_ingress_test.go:125
Function
TestOrgRoutedSessionProviderDestroyUnknownPidNoOp
(t *testing.T)
controlplane/flight_ingress_test.go:146
Function
TestOrgRoutedSessionProviderFailsClosedWhenSNIUnresolved
TestOrgRoutedSessionProviderFailsClosedWhenSNIUnresolved: if the connection's SNI no longer resolves to an org, no session is created (fail closed).
controlplane/flight_ingress_test.go:78
Function
TestOrgRoutedSessionProviderReconnectSessionUsesDurableOrgID
(t *testing.T)
controlplane/flight_ingress_test.go:95
Function
TestOrgRoutedSessionProviderRoutesByContextSNINotUsername
TestOrgRoutedSessionProviderRoutesByContextSNINotUsername proves the fix for the username-collision: two connections sharing the username "alice" but
controlplane/flight_ingress_test.go:49
Function
TestOrgRouterCreateOrgStackActivatesUsingLatestSnapshotThroughSharedWorkerActivator
(t *testing.T)
controlplane/org_router_test.go:236
Function
TestOrgRouterDestroyOrgStackDrainsSessionsBeforePoolShutdownAndReleasesSessionLeases
(t *testing.T)
controlplane/org_router_test.go:62
Function
TestOrgRouterHandleConfigChangeRefreshesDefaultWorkerMinHotIdle
(t *testing.T)
controlplane/org_router_test.go:181
Function
TestOrgRouterHandleConfigChangeRefreshesOrgWorkerImage
(t *testing.T)
controlplane/org_router_test.go:144
Function
TestOrgRouterHandleConfigChangeRefreshesRuntimeOnlyUpdates
(t *testing.T)
controlplane/org_router_test.go:102
Function
TestOrgRouterMigrationLock
(t *testing.T)
controlplane/migration_lock_test.go:16
Function
TestOrgWarehouseStatus
(t *testing.T)
controlplane/configstore/store_test.go:459
Function
TestOriginFetchMetricLabels
(t *testing.T)
cmd/cache-proxy/proxy_test.go:501
Function
TestOverrideS3EndpointForCacheProxy
(t *testing.T)
duckdbservice/cache_proxy_test.go:9
Function
TestPGWireDSNForHarnessAddsKeywordPasswordWhenMissing
(t *testing.T)
tests/perf/harness_dsn_test.go:5
Function
TestPGWireDSNForHarnessAddsURLPasswordWhenMissing
(t *testing.T)
tests/perf/harness_dsn_test.go:27
Function
TestPGWireDSNForHarnessLeavesDSNUnchangedWithoutPassword
(t *testing.T)
tests/perf/harness_dsn_test.go:49
Function
TestPGWireDSNForHarnessPreservesExistingKeywordPassword
(t *testing.T)
tests/perf/harness_dsn_test.go:16
Function
TestPGWireDSNForHarnessPreservesExistingURLPassword
(t *testing.T)
tests/perf/harness_dsn_test.go:38
Function
TestParseBasicCredentials
(t *testing.T)
server/flightsqlingress/ingress_test.go:438
Function
TestParseBasicCredentialsInvalid
(t *testing.T)
server/flightsqlingress/ingress_test.go:452
Function
TestParseCatalogRejectsDuplicateQueryIDs
(t *testing.T)
tests/perf/core/catalog_test.go:41
← previous
next →
4,801–4,900 of 5,901, ranked by callers