MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

↓ 1 callersFunctionparseSQLStep
(step core.Step)
tests/scenario/sql/steps.go:233
↓ 1 callersFunctionparseShowCreateRef
parseShowCreateRef splits a possibly catalog- and schema-qualified, possibly double-quoted table reference into (catalog, schema, table). Defaults: ca
transpiler/show_create.go:139
↓ 1 callersMethodparseStep
(step core.Step)
tests/scenario/dbt/steps.go:184
↓ 1 callersMethodparseStep
(step core.Step)
tests/scenario/perf/steps.go:202
↓ 1 callersFunctionparseStructType
parseStructType parses a DuckDB STRUCT type string into an Arrow StructType.
duckdbservice/arrowmap/arrowmap.go:223
↓ 1 callersFunctionparseValue
parseValue attempts to parse a string value into an appropriate Go type
tests/integration/compare.go:120
↓ 1 callersFunctionparse_name_status
(line: str)
scripts/test_impact_plan.py:113
↓ 1 callersMethodpartitions
()
server/querylog_kafka_writer.go:601
↓ 1 callersFunctionpatternHasCaptureGroup
patternHasCaptureGroup reports whether a regex literal contains an unescaped capturing '(' (i.e. '(' not preceded by '\' and not the start of '(?').
transpiler/transform/functions_compat.go:322
↓ 1 callersMethodpendingOrgConnectionUserQueueHeads
(tx *gorm.DB, queueTable, orgID string, now time.Time)
controlplane/configstore/org_connections.go:284
↓ 1 callersFunctionpgArrayLiteralToArrayExpr
pgArrayLiteralToArrayExpr converts a literal Postgres array text form (e.g. '{1,2,3}', '{a,b}', '{1,NULL,3}', '{"a,b",c}') into a DuckDB ARRAY[...] ex
transpiler/transform/typecast.go:608
↓ 1 callersFunctionpgIdentSuffix
pgIdentSuffix sanitizes an org ID into a valid unquoted Postgres identifier fragment: lowercase, with every non-[a-z0-9_] character (notably hyphens)
controlplane/provisioner/k8s_client.go:94
↓ 1 callersFunctionpgNumberFormatToDuckDB
pgNumberFormatToDuckDB converts PostgreSQL number format specifiers to DuckDB format() syntax. PG format: '999,999.99' → DuckDB: '{:,.2f}'
transpiler/transform/functions.go:635
↓ 1 callersFunctionpgPathArrayToJSONPath
pgPathArrayToJSONPath converts a literal Postgres text[] path (e.g. '{a,b}' or '{a,0,b}') into a DuckDB JSONPath ('$."a"."b"', '$."a"[0]."b"'). Keys a
transpiler/transform/operators.go:902
↓ 1 callersFunctionpgTypeOIDCaseSQL
(dataTypeExpr, fallbackExpr string)
server/sessionmeta/sessionmeta.go:460
↓ 1 callersMethodpgwireDSN
(spec stepSpec)
tests/scenario/perf/steps.go:302
↓ 1 callersFunctionplural
(n int)
server/shell.go:226
↓ 1 callersFunctionpodChip
(pod: any, _k: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:391
↓ 1 callersFunctionpoolOfNodeName
(name: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:173
↓ 1 callersFunctionpostJSON
(path, data)
scripts/client-compat/clients/node-postgres/test_node_postgres.js:24
↓ 1 callersFunctionpostgresSNIRoutingModeEnabled
(mode string)
controlplane/control.go:782
↓ 1 callersMethodprocessMessage
(ctx context.Context, msg QueryLogKafkaConsumedMessage)
server/querylog_kafka_writer.go:271
↓ 1 callersFunctionprojectRoot
(t *testing.T)
tests/manifests/manifests_test.go:254
↓ 1 callersMethodpruneIdleWriters
(now time.Time)
server/querylog_kafka_writer.go:928
↓ 1 callersMethodpruneStaleByKey
pruneStaleByKey removes a bootstrap key only if it still points to a missing session token. This method must hold an exclusive lock because it mutates
server/flightsqlingress/ingress.go:1765
↓ 1 callersMethodqueryConnRows
(ctx context.Context, query string, args ...any)
duckdbservice/service.go:406
↓ 1 callersMethodqueryContextForCursor
queryContextForCursor returns a cancellable context without a disconnect monitor. Cursors are long-lived and span multiple message loop iterations, so
server/conn.go:319
↓ 1 callersMethodqueryCount
()
server/flightsqlingress/ingress.go:1421
↓ 1 callersFunctionqueryFrame
(query string)
server/conn_skip_until_sync_test.go:119
↓ 1 callersFunctionqueryInts
(t *testing.T, db *sql.DB, query string)
tests/controlplane/ducklake_bool_merge_test.go:61
↓ 1 callersFunctionqueryLogCatalogName
(fullTableName string)
server/querylog.go:526
↓ 1 callersFunctionqueryLogCreateTableSQL
(fullTableName string)
server/querylog.go:464
↓ 1 callersFunctionqueryLogKafkaEntries
(batch []queryLogKafkaBufferedEvent)
server/querylog_kafka_writer.go:620
↓ 1 callersFunctionqueryLogKafkaEvents
(batch []queryLogKafkaBufferedEvent)
server/querylog_kafka_writer.go:612
↓ 1 callersFunctionqueryLogWriterNamespace
(configured string)
querylog_writer_mode_kubernetes.go:218
↓ 1 callersFunctionqueryOutcomeFromErrorCode
(code string)
server/query_metrics.go:79
↓ 1 callersMethodqueryRange
(c *gin.Context)
controlplane/admin/metrics_proxy.go:81
↓ 1 callersMethodqueryRequest
(step core.Step, spec querySpec, resultID string)
tests/scenario/sql/steps.go:193
↓ 1 callersMethodqueryWithRecoveryLocked
(ctx context.Context, query string, args ...any)
server/flightsqlingress/ingress.go:1237
↓ 1 callersFunctionquoteConninfoValue
(value string)
tests/scenario/sql/connection.go:71
↓ 1 callersFunctionquotePostgresIdentifier
(name string)
tests/integration/harness.go:416
↓ 1 callersFunctionreadCompose
(t *testing.T)
tests/integration/composefile/compose_test.go:58
↓ 1 callersFunctionreadDirNames
(dir string)
cmd/cache-proxy/cache_test.go:213
↓ 1 callersMethodreadS3Credentials
(ctx context.Context, ref configstore.SecretRef)
controlplane/shared_worker_activator.go:602
↓ 1 callersFunctionreadSpecDuckLakeEnabled
readSpecDuckLakeEnabled returns spec.ducklake.enabled as *bool — nil when the ducklake block (or its enabled key) is absent, so callers can distinguis
controlplane/provisioner/k8s_client.go:427
↓ 1 callersFunctionreadStartupWithGSSFallback
readStartupWithGSSFallback accepts a GSSAPI probe, rejects it with 'N', and keeps reading startup packets on the same connection so clients can contin
controlplane/control.go:1615
↓ 1 callersMethodreapIdleWorkers
()
controlplane/k8s_pool_lifecycle.go:790
↓ 1 callersMethodreapLoop
()
server/flightsqlingress/ingress.go:2017
↓ 1 callersMethodreapLoop
()
duckdbservice/service.go:611
↓ 1 callersMethodreapOrphanedHotIdle
(now time.Time)
controlplane/per_cp_hot_idle_reaper.go:127
↓ 1 callersMethodreapStaleHandles
(now time.Time, ttl time.Duration)
server/flightsqlingress/ingress.go:1427
↓ 1 callersMethodreconcileBucketName
reconcileBucketName backfills spec.dataStore.bucketName (and the config-store row) with the control-plane-owned per-org bucket name for ready s3bucket
controlplane/provisioner/controller.go:402
↓ 1 callersMethodreconcileDeleting
(ctx context.Context, w *configstore.ManagedWarehouse)
controlplane/provisioner/controller.go:449
↓ 1 callersMethodreconcilePending
(ctx context.Context, w *configstore.ManagedWarehouse)
controlplane/provisioner/controller.go:171
↓ 1 callersMethodreconcileProvisioning
(ctx context.Context, w *configstore.ManagedWarehouse)
controlplane/provisioner/controller.go:224
↓ 1 callersMethodreconcileReady
reconcileReady handles drift correction for Ready warehouses. The post-create-mutable spec field is metadataStore.pgbouncer.enabled; if an operator fl
controlplane/provisioner/controller.go:364
↓ 1 callersMethodreconnectByToken
(ctx context.Context, token string)
server/flightsqlingress/ingress.go:1945
↓ 1 callersMethodrecord
(message string, attrs []slog.Attr)
controlplane/k8s_pool_test.go:41
↓ 1 callersFunctionrecordMetric
(m concurrencyMetric)
tests/integration/ducklake_concurrency_test.go:46
↓ 1 callersMethodrecoverACMEAfterFailedReload
()
controlplane/control.go:2136
↓ 1 callersMethodrecoverAfterFailedReload
recoverAfterFailedReload restores all subsystems that were shut down in the SIGUSR1 handler when the new CP fails to complete the upgrade.
controlplane/control.go:2109
↓ 1 callersMethodrecoverMetricsAfterFailedReload
()
controlplane/control.go:2116
↓ 1 callersFunctionredactHTTPBody
(raw []byte)
tests/scenario/provision/redact.go:28
↓ 1 callersFunctionredactSecret
(text, secret string)
tests/scenario/dbt/steps.go:314
↓ 1 callersFunctionredactValue
(v any)
tests/scenario/provision/redact.go:42
↓ 1 callersFunctionregisterAuditAPI
registerAuditAPI wires GET /audit, admin-only via a per-route RequireAdmin gate that travels with the route (a rename cannot silently expose it).
controlplane/admin/audit.go:237
↓ 1 callersFunctionregisterImpersonateAPI
registerImpersonateAPI wires POST /orgs/:id/impersonate/query. RoleGate already restricts POST to admins; the handler re-checks and audits.
controlplane/admin/impersonate.go:37
↓ 1 callersFunctionregisterOperatorsAPI
registerOperatorsAPI wires the Operators management endpoints. Every route is admin-only (RequireAdmin per-route, so the gate travels with the route a
controlplane/admin/operators_api.go:25
↓ 1 callersFunctionregisterUserSecretsAPI
registerUserSecretsAPI wires list/delete for a user's stored persistent secrets. The ciphertext is never returned (json:"-" on the model); only names
controlplane/admin/secrets_api.go:24
↓ 1 callersFunctionreinjectOrReplace
reinjectOrReplace inserts `OR REPLACE` after the leading CREATE keyword of a transpiled `CREATE [TEMP] TABLE ...` statement, reversing the strip done
transpiler/create_or_replace.go:43
↓ 1 callersMethodreleaseSQLTransactionDrain
()
duckdbservice/service.go:215
↓ 1 callersMethodremoveSessionFromWorkerLocked
(workerID int, pid int32)
controlplane/session_mgr.go:806
↓ 1 callersMethodremoveWaiterLocked
(waiter *connectionWaiter)
controlplane/session_mgr.go:316
↓ 1 callersFunctionremoveWhitespaceBeforeParen
removeWhitespaceBeforeParen deletes whitespace runs immediately preceding a '(' in a single pass, so Classify's paren-suffixed tokens like "EVERY(" ma
transpiler/transpiler.go:714
↓ 1 callersMethodremoveWorkerAfterDrainedLease
(lease workerLeaseSnapshot, origin LifecycleOrigin)
controlplane/k8s_pool_lifecycle.go:1222
↓ 1 callersMethodremoveWorkerLocked
(id int)
controlplane/k8s_pool_lifecycle.go:981
↓ 1 callersFunctionrenderFlatGroups
(mode: string, flatPods: [any, string][], sortPods: (l: [any, string][]) => void)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:476
↓ 1 callersFunctionrender_markdown
(plan: TestImpactPlan)
scripts/test_impact_plan.py:492
↓ 1 callersMethodreplaceCompatFuncNode
This file implements the PostgreSQL builtin-compatibility transforms that cannot be expressed as catalog macros (self-recursion, variadic templates, o
transpiler/transform/functions_compat.go:18
↓ 1 callersMethodreplaceExpandArrayCalls
replaceExpandArrayCalls replaces _pg_expandarray calls with column references
transpiler/transform/expandarray.go:261
↓ 1 callersMethodreplaceLogWithLnDivision
replaceLogWithLnDivision replaces log(base, value) with ln(value) / ln(base).
transpiler/transform/functions.go:412
↓ 1 callersFunctionreplaceStandaloneToken
replaceStandaloneToken replaces every occurrence of tok in s with repl, but only where tok is not adjacent to an identifier-continuation byte on eithe
transpiler/longident.go:204
↓ 1 callersFunctionrequestMap
(step core.Step)
tests/scenario/provision/steps.go:209
↓ 1 callersFunctionrequireGetTablesIncludeSchema
(t *testing.T, client *flightsql.Client, ctx context.Context)
tests/controlplane/flight_ingress_test.go:48
↓ 1 callersFunctionrequiredString
(step core.Step, key string)
tests/scenario/sql/steps.go:381
↓ 1 callersFunctionresetConfigStoreTables
(t *testing.T, db *gorm.DB)
controlplane/admin/api_postgres_test.go:85
↓ 1 callersFunctionresetLeaderOwnedClusterMetrics
resetLeaderOwnedClusterMetrics clears the cluster-wide gauges this CP owns only while it holds the janitor leader lease, so stale per-image counts don
controlplane/pool_metrics.go:88
↓ 1 callersMethodresolveBackend
resolveBackend returns the effective backend. An explicit Backend wins; otherwise it is derived from the legacy DuckLakeMode flag.
transpiler/config.go:44
↓ 1 callersMethodresolveCPUID
(ctx context.Context)
controlplane/k8s_pool.go:244
↓ 1 callersFunctionresolveDataStore
resolveDataStore validates and normalizes the data-store request into the stored intent. Nil or "s3bucket" provisions a fresh per-org bucket; "externa
controlplane/provisioning/api.go:187
↓ 1 callersMethodresolveFlightOrgFromSNI
resolveFlightOrgFromSNI maps a TLS ServerName to its org, returning ok=false for unmanaged hostnames or prefixes that resolve to no org.
controlplane/control.go:2038
↓ 1 callersFunctionresolveK8sNamespace
(namespace string)
controlplane/multitenant.go:643
↓ 1 callersFunctionresolveOrgDefaultWorkerProfile
(k K8sConfig, org *configstore.OrgConfig)
controlplane/worker_profile_k8s.go:7
↓ 1 callersFunctionresolveRuntimeSchema
(db *gorm.DB)
controlplane/configstore/store.go:699
↓ 1 callersFunctionresolveScenarioFilePaths
(s core.Scenario, baseDir string)
tests/scenario/runner_test.go:509
↓ 1 callersFunctionresolveTemplateValue
(value any, vars map[string]string)
tests/scenario/runner_test.go:581
↓ 1 callersMethodresourceLimitsForOrg
(orgID string)
controlplane/org_router.go:169
↓ 1 callersMethodretireWorkerIfNoSessionsWithReason
(id int, reason string, origin LifecycleOrigin)
controlplane/k8s_pool_lifecycle.go:54
↓ 1 callersFunctionretryConfigForStep
(step core.Step, base RetryConfig)
tests/scenario/sql/steps.go:342
↓ 1 callersFunctionreturningRefsColumn
returningRefsColumn reports whether a RETURNING item references, by name, any column in cols. RETURNING * is deliberately NOT treated as a hit: it is
transpiler/transform/writablecte.go:430
← previousnext →2,601–2,700 of 5,901, ranked by callers