MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

FunctionTestClaimHotIdleWorkerSerializesOrgCapPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:694
FunctionTestClassifierCovers_FuncAliasMappings
(t *testing.T)
transpiler/transpiler_test.go:4695
FunctionTestClassifierCovers_FunctionMappings
--- Classifier Coverage Safety Net --- These tests verify that Classify() detects all function/macro names registered in the transform package. If a n
transpiler/transpiler_test.go:4674
FunctionTestClassifierCovers_PgCatalogFunctions
(t *testing.T)
transpiler/transpiler_test.go:4710
FunctionTestClassifierCovers_PgCatalogViews
(t *testing.T)
transpiler/transpiler_test.go:4993
FunctionTestClassifierCovers_SpecialFunctions
(t *testing.T)
transpiler/transpiler_test.go:4726
FunctionTestClassify
(t *testing.T)
server/usersecrets/classify_test.go:5
FunctionTestClassifyErrorCode
(t *testing.T)
server/transient_test.go:303
FunctionTestClassifyErrorCodeAgainstRealDuckDB
TestClassifyErrorCodeAgainstRealDuckDB drives queries that reliably produce each error prefix the classifier branches on, against a real in-memory Duc
server/transient_test.go:444
FunctionTestClassifyQuery
(t *testing.T)
server/querylog_test.go:11
FunctionTestClassifySnapshotMissUsesGenericSnapshotOutcome
(t *testing.T)
controlplane/worker_lifecycle_test.go:333
FunctionTestClassifyWiring_BooleanPredicateParens
Fix 22: the boolean-predicate gate must match parenthesized literals, including interleaved parens and spaces.
transpiler/classify_wiring_test.go:332
FunctionTestClassifyWiring_BraceLiteralCastSpelling
Fix 11: CAST('{1,2,3}' AS int[]) must trigger the array-literal rewrite like the '{1,2,3}'::int[] spelling does.
transpiler/classify_wiring_test.go:157
FunctionTestClassifyWiring_ByteaHexLiteralSpellings
Fix 2: E-string and dollar-quoted bytea hex literals must set FlagLiterals — the old `'\X` signature only matched the plain-quoted spelling, silently
transpiler/classify_wiring_test.go:92
FunctionTestClassifyWiring_CurrentCatalogSchemaKeyword
Fix 23: keyword (paren-less) CURRENT_CATALOG / CURRENT_SCHEMA must be flagged so the deparse pass lowercases them (PG-compatible result column names).
transpiler/classify_wiring_test.go:313
FunctionTestClassifyWiring_GeometricRangeTypeTokens
Fix 10: geometric/range/multirange/timestampntz/rowversion types mapped in types.go need Classify tokens so they ever reach TypeMappingTransform.
transpiler/classify_wiring_test.go:112
FunctionTestClassifyWiring_OnConflictWhitespace
Fix 20: ON\nCONFLICT must flag FlagOnConflict (bare CONFLICT token).
transpiler/classify_wiring_test.go:268
FunctionTestClassifyWiring_PrefixWordBoundary
Fix 13: SET/SHOW/RESET/DISCARD/BEGIN/START prefix detection must use word boundaries, not a literal trailing space.
transpiler/classify_wiring_test.go:216
FunctionTestClassifyWiring_RegCastSpellings
Fix 1: CAST(x AS regtype/regclass/...) and ::regoper/::regconfig/::regdictionary must reach TypeCastTransform, not just the ::regtype-style spellings.
transpiler/classify_wiring_test.go:47
FunctionTestClassifyWiring_SpaceBeforeParen
Fix 21: whitespace between a function name and '(' must not defeat paren-suffixed tokens (Tier-0 escape; regexp_matches silently diverges).
transpiler/classify_wiring_test.go:289
FunctionTestClassifyWiring_WhitespaceNormalizedTokens
Fix 12: multi-word and trailing-space tokens must match newline/tab/multi-space spellings via whitespace normalization, per token (an unrelated flag r
transpiler/classify_wiring_test.go:181
FunctionTestClassifyWiring_WritableCTEBareTokens
Fix 18: writable-CTE gate tokens must be bare keywords — DELETE\nFROM inside a CTE and minified WITH"d"AS(...) have no space after the keyword.
transpiler/classify_wiring_test.go:245
FunctionTestClassify_Direct
--- Three-Tier Intercept Tests ---
transpiler/transpiler_test.go:4372
FunctionTestClassify_DuckLakeMode
(t *testing.T)
transpiler/transpiler_test.go:4521
FunctionTestClassify_LogicalCatalogMapping_DuckLakeMode
(t *testing.T)
transpiler/transpiler_test.go:4509
FunctionTestClassify_NeedsTransform
(t *testing.T)
transpiler/transpiler_test.go:4440
FunctionTestCleanDeadWorkersLocked
(t *testing.T)
controlplane/worker_mgr_process_test.go:655
FunctionTestCleanupOrphanedWorkerPods_DeletesPodWhenDBRecordMissing
(t *testing.T)
controlplane/k8s_pool_test.go:3879
FunctionTestCleanupOrphanedWorkerPods_DeletesPodWhenDBStateLost
(t *testing.T)
controlplane/k8s_pool_test.go:3859
FunctionTestCleanupOrphanedWorkerPods_DeletesPodWhenDBStateRetired
(t *testing.T)
controlplane/k8s_pool_test.go:3827
FunctionTestCleanupOrphanedWorkerPods_IgnoresNonWorkerPods
(t *testing.T)
controlplane/k8s_pool_test.go:3973
FunctionTestCleanupOrphanedWorkerPods_LeavesLivePodAlone
(t *testing.T)
controlplane/k8s_pool_test.go:3905
FunctionTestCleanupOrphanedWorkerPods_SkipsYoungPod
(t *testing.T)
controlplane/k8s_pool_test.go:3926
FunctionTestCleanupOrphanedWorkerPods_TreatsNotFoundAsSuccess
(t *testing.T)
controlplane/k8s_pool_test.go:3942
FunctionTestCleanupOrphanedWorkerSecrets_DeletesSecretsWithoutPods
(t *testing.T)
controlplane/k8s_pool_test.go:4000
FunctionTestCleanupOrphanedWorkerSecrets_KeepsSecretsForLivePods
(t *testing.T)
controlplane/k8s_pool_test.go:4037
FunctionTestCleanupOrphanedWorkerSecrets_OnlyReapsOwnControlPlane
(t *testing.T)
controlplane/k8s_pool_test.go:4110
FunctionTestCleanupOrphanedWorkerSecrets_RespectsMinAge
(t *testing.T)
controlplane/k8s_pool_test.go:4141
FunctionTestCleanupOrphanedWorkerSecrets_SkipsEmptyPodLabel
(t *testing.T)
controlplane/k8s_pool_test.go:4078
FunctionTestCleanupSessionState
(t *testing.T)
duckdbservice/service_test.go:281
FunctionTestClickHouseMacros
(t *testing.T)
server/chsql_test.go:11
FunctionTestClickHouseMacros_GenerateUUIDv4
(t *testing.T)
server/chsql_test.go:89
FunctionTestClickHouseMacros_SplitByChar
(t *testing.T)
server/chsql_test.go:70
FunctionTestClientClassifiesHTTPFailuresAndRedactsBody
(t *testing.T)
tests/scenario/provision/client_test.go:241
FunctionTestClientDeprovisionSendsExpectedRequest
(t *testing.T)
tests/scenario/provision/client_test.go:207
FunctionTestClientProvisionSendsExpectedRequestAndPreservesPassword
(t *testing.T)
tests/scenario/provision/client_test.go:14
FunctionTestClientWaitPreservesContextCancellation
(t *testing.T)
tests/scenario/provision/client_test.go:275
FunctionTestClientWaitWarehouseDeletedReportsTimeout
(t *testing.T)
tests/scenario/provision/client_test.go:303
FunctionTestClientWaitWarehouseReadyFailsFastOnFailed
(t *testing.T)
tests/scenario/provision/client_test.go:174
FunctionTestClientWaitWarehouseReadyPollsUntilReady
(t *testing.T)
tests/scenario/provision/client_test.go:112
FunctionTestCloseAllPreboundClosesListeners
(t *testing.T)
controlplane/worker_mgr_process_test.go:948
FunctionTestCloseAllWaitsForAcceptedConnectionWorkBeforeClose
(t *testing.T)
duckdbservice/service_test.go:1066
FunctionTestCloseAllWaitsForActiveConnectionWorkBeforeClose
(t *testing.T)
duckdbservice/service_test.go:1020
FunctionTestCloseClosesClient
(t *testing.T)
internal/analytics/analytics_test.go:67
FunctionTestCloseConnectionMetricsReturnsLifetime
CloseConnectionMetrics must return the elapsed connection lifetime measured from backendStart so the control plane can log duration_ms. The histogram
server/conn_duration_test.go:12
FunctionTestCloseCursorsAtTxEnd
closeCursorsAtTxEnd must release open cursors BEFORE a COMMIT/ROLLBACK executes: an open cursor rowset holds the session's only DuckDB connection (ope
server/conn_cursor_test.go:11
FunctionTestCloseFlightSessionRecordIfReconnectTargetUnchangedPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:1973
FunctionTestCloseSessionDoesNotReissueSessionTokenMetadata
(t *testing.T)
server/flightsqlingress/ingress_test.go:1663
FunctionTestCloseSessionMissingTokenDoesNotBootstrap
(t *testing.T)
server/flightsqlingress/ingress_test.go:1589
FunctionTestCloseSessionRevokesTokenAndDestroysWorker
(t *testing.T)
server/flightsqlingress/ingress_test.go:1535
FunctionTestCloseSessionTokenOnlyRevokesTokenAndDoesNotBootstrap
(t *testing.T)
server/flightsqlingress/ingress_test.go:1616
FunctionTestClusterEventsProjection
(t *testing.T)
controlplane/admin/cluster_test.go:172
FunctionTestClusterNodepoolsAbsentDegradesToEmpty
TestClusterNodepoolsAbsentDegradesToEmpty asserts the karpenter passthrough returns an empty list (not a 500) when the CRD isn't installed — the fake
controlplane/admin/cluster_test.go:287
FunctionTestClusterNodesForbiddenDegradesToEmpty
TestClusterNodesForbiddenDegradesToEmpty asserts an RBAC Forbidden from the API server yields a 200 empty list (not a 500) — the view shows nothing ra
controlplane/admin/cluster_test.go:204
FunctionTestClusterNodesProjection
(t *testing.T)
controlplane/admin/cluster_test.go:48
FunctionTestClusterPodsProjection
(t *testing.T)
controlplane/admin/cluster_test.go:109
FunctionTestClusterSummary
TestClusterSummary asserts the aggregated nav totals: worker vs placeholder pods are counted separately with their CPU/mem request sums, control-plane
controlplane/admin/cluster_test.go:222
FunctionTestCnpgShardFromEndpoint
TestCnpgShardFromEndpoint pins the shard-name extraction: the first DNS label minus the CloudNativePG service-role suffix, degrading to the bare label
controlplane/admin/ducklings_metadata_test.go:19
FunctionTestCompatMacros_BatchA
(t *testing.T)
server/pg_compat_macros_test.go:49
FunctionTestCompatMacros_BatchB
(t *testing.T)
server/pg_compat_macros_test.go:131
FunctionTestCompatMacros_BatchC
(t *testing.T)
server/pg_compat_macros_test.go:177
FunctionTestCompatTableMacros_BatchD
Batch D — set-returning table macros, exercised in FROM position and reduced to a single scalar so they reuse runMacroCases.
server/pg_compat_macros_test.go:201
FunctionTestCompatTransforms_ArrayPositionStart
(t *testing.T)
server/pg_compat_transforms2_test.go:107
FunctionTestCompatTransforms_BatchE
(t *testing.T)
server/pg_compat_transforms_test.go:58
FunctionTestCompatTransforms_FormatUnsupportedSpecErrors
Unsupported format() specs must hard-error, not silently return the template unsubstituted (DuckDB's native format behavior — the corruption mode the
server/pg_compat_transforms_test.go:109
FunctionTestCompatTransforms_JSONExtractPathVariadic
These tests cover the wiring-gap fixes for functions.go / catalog.go: variadic json_extract_path*, regexp_match(es) flags, precision-form SQLValueFunc
server/pg_compat_transforms2_test.go:18
FunctionTestCompatTransforms_JSONTypeofVocabulary
(t *testing.T)
server/pg_compat_transforms2_test.go:160
FunctionTestCompatTransforms_PrecisionSQLValueFunctions
Precision forms LOCALTIME(p)/LOCALTIMESTAMP(p)/CURRENT_TIME(p)/CURRENT_TIMESTAMP(p) parse as SQLValueFunction nodes; they must be rewritten to the bar
server/pg_compat_transforms2_test.go:54
FunctionTestCompatTransforms_RegexpMatchFlags
(t *testing.T)
server/pg_compat_transforms2_test.go:32
FunctionTestCompatTransforms_StringToArrayNullStr
(t *testing.T)
server/pg_compat_transforms2_test.go:96
FunctionTestCompatTransforms_Timeofday
timeofday() must return PG-shaped text like "Tue Jun 09 13:17:57.627882 2026 America/Los_Angeles" — the old mapping to a nonexistent scalar "current_t
server/pg_compat_transforms2_test.go:124
FunctionTestComputeConnectionUsage
(t *testing.T)
controlplane/compute_meter_test.go:12
FunctionTestComputeMeterFlush
(t *testing.T)
controlplane/compute_meter_test.go:156
FunctionTestComputeMeterFlushErrorIsBestEffort
(t *testing.T)
controlplane/compute_meter_test.go:192
FunctionTestComputeMeterRecordNeverPanicsOnNilOrDisabled
(t *testing.T)
controlplane/compute_meter_test.go:200
FunctionTestComputeMeterRunFinalFlushOnCancel
(t *testing.T)
controlplane/compute_meter_test.go:217
FunctionTestComputeMeterUnknownTeamTolerated
(t *testing.T)
controlplane/compute_meter_test.go:178
FunctionTestComputeUsageCounterBucketing
(t *testing.T)
controlplane/compute_meter_test.go:64
FunctionTestComputeUsageCounterRemainderCarry
(t *testing.T)
controlplane/compute_meter_test.go:110
FunctionTestComputeUsageGCRunsAndStops
(t *testing.T)
controlplane/compute_billing_api_test.go:269
FunctionTestConcurrentActivateTenantSamePayloadBothSucceed
TestConcurrentActivateTenantSamePayloadBothSucceed reproduces the rollout-race seen on dev 2026-05-05: a single CP can issue two ActivateTenant RPCs c
duckdbservice/activation_test.go:593
FunctionTestConcurrentConnections
TestConcurrentConnections tests multiple connections operating simultaneously.
tests/integration/edge_cases_test.go:12
FunctionTestConcurrentFirstConnections
TestConcurrentFirstConnections verifies that multiple connections arriving simultaneously at a freshly-started control plane all succeed. This is a re
tests/controlplane/controlplane_test.go:776
FunctionTestConcurrentTakeReturn
(t *testing.T)
controlplane/worker_mgr_process_test.go:1062
FunctionTestConfigStoreRunsVersionedSQLMigrations
(t *testing.T)
tests/configstore/migrations_postgres_test.go:18
FunctionTestConfigStoreSQLMigrationsMatchGORMModelMetadata
(t *testing.T)
tests/configstore/migrations_postgres_test.go:324
FunctionTestConfigStoreSQLMigrationsUpgradeLegacyOrgUsersUsernamePK
(t *testing.T)
tests/configstore/migrations_postgres_test.go:242
FunctionTestConfigStoreSQLMigrationsUpgradeOldOrgSchema
(t *testing.T)
tests/configstore/migrations_postgres_test.go:180
FunctionTestConfigStoreSQLMigrationsUpgradeVersion8Schema
(t *testing.T)
tests/configstore/migrations_postgres_test.go:102
FunctionTestConfigureDuckLakeMetadataPoolRunsExpectedStatement
(t *testing.T)
server/server_test.go:359
← previousnext →3,901–4,000 of 5,901, ranked by callers