MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

↓ 2 callersFunctionformatArrayValue
formatArrayValue formats a []any slice as PostgreSQL text array: {1,2,3}
server/conn_results.go:428
↓ 2 callersMethodformatCopyValue
formatCopyValue formats a value for COPY output
server/conn_copy.go:1332
↓ 2 callersFunctionformatInterval
formatInterval formats an arrowmap.IntervalValue as a PostgreSQL-compatible interval string. Examples: "00:13:08.917797", "1 day 02:30:00", "1 year 2
server/conn_results.go:374
↓ 2 callersFunctionformatMapValue
formatMapValue formats a map[string]any as a key-value text representation. Used for STRUCT values extracted from Arrow (keys are field names → always
server/conn_results.go:474
↓ 2 callersFunctionformatSQLValue
formatSQLValue formats a Go value as a SQL literal for INSERT statements. Note: []byte is treated as UTF-8 text (fine for DuckLake metadata which stor
server/ducklake/migration.go:552
↓ 2 callersMethodforwardUncached
forwardUncached forwards a request to the origin without caching. Used for HEAD and other non-GET methods that shouldn't consume cache space. Logs sy
cmd/cache-proxy/proxy.go:702
↓ 2 callersFunctionfreePort
()
tests/perf/harness_test.go:412
↓ 2 callersMethodgetExistingByKey
(key string)
server/flightsqlingress/ingress.go:1744
↓ 2 callersMethodgetExistingByKeyLocked
(key string)
server/flightsqlingress/ingress.go:1754
↓ 2 callersMethodgetOpenTxn
Session helpers
duckdbservice/flight_handler.go:1039
↓ 2 callersFunctiongibi
(b: number)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:645
↓ 2 callersMethodhandleConnectionIsolated
handleConnectionIsolated handles a connection with process isolation. The parent handles SSL request and cancel requests, then spawns a child process
server/server.go:2472
↓ 2 callersMethodhandleFetchCursor
handleFetchCursor handles FETCH in the Simple Query protocol.
server/conn_cursor.go:285
↓ 2 callersMethodhandleStartup
()
server/conn.go:939
↓ 2 callersMethodhandleSubstrClamp
handleSubstrClamp rewrites substr/substring positional args in place to match PG's window semantics for non-positive start: start -> greatest(start,1)
transpiler/transform/functions_compat.go:182
↓ 2 callersFunctionhasCacheHTTPFS
hasCacheHTTPFS checks if cache_httpfs is in the extensions list.
server/server.go:1508
↓ 2 callersFunctionhasParameterPlaceholders
hasParameterPlaceholders returns true if the query contains $N placeholders
server/conn.go:735
↓ 2 callersFunctionhashColorBg
(key: string)
controlplane/admin/ui/src/lib/colors.ts:19
↓ 2 callersMethodhealthCheckPayloadForLease
(lease workerLeaseSnapshot)
controlplane/k8s_pool_helpers.go:110
↓ 2 callersMethodidleExpired
(now time.Time, idleTTL time.Duration)
server/querylog_kafka_writer.go:924
↓ 2 callersFunctionincomingSessionToken
(md metadata.MD)
server/flightsqlingress/ingress.go:497
↓ 2 callersMethodinitConnsMap
initConnsMap initializes the connection registry map. This is a separate method to work around cases where a local variable named "clientConn" shadows
server/server.go:737
↓ 2 callersFunctioninjectPostgresApplicationName
injectPostgresApplicationName adds an application_name= libpq parameter to a postgres metadata store connection string so the metadata DB can attribut
server/ducklake/migration.go:610
↓ 2 callersFunctioninjectPostgresKeepalive
injectPostgresKeepalive adds TCP keepalive parameters to a postgres metadata store connection string if they are not already present. Without keepaliv
server/ducklake/migration.go:586
↓ 2 callersFunctioninsertQueryLogEntries
(ctx context.Context, db *sql.DB, table string, batch []QueryLogEntry)
server/querylog.go:309
↓ 2 callersFunctioninsertQueryLogKafkaEvents
(ctx context.Context, db *sql.DB, table string, entries []QueryLogEntry)
server/querylog_kafka_writer.go:742
↓ 2 callersFunctionintFromWith
(step core.Step, key string)
tests/scenario/sql/steps.go:436
↓ 2 callersFunctionintPtr
(n int)
server/ducklake/migration_test.go:231
↓ 2 callersFunctionisBooleanLiteral
(node *pg_query.Node)
transpiler/transform/boolpredicates.go:310
↓ 2 callersFunctionisDeltaCatalogEmptyError
isDeltaCatalogEmptyError reports whether err indicates the Delta location exists but contains no Delta transaction log yet (the common case for a fres
server/server.go:1790
↓ 2 callersMethodisDraining
()
controlplane/control.go:1790
↓ 2 callersFunctionisDropTableOnViewError
isDropTableOnViewError checks if the error indicates that a DROP TABLE was attempted on a view. DuckDB returns: "Catalog Error: Existing object X is o
server/conn_errors.go:331
↓ 2 callersFunctionisDuckDBUtilityCommand
isDuckDBUtilityCommand checks if a query is a DuckDB utility command that doesn't support EXPLAIN validation. These commands are passed through direct
server/conn.go:742
↓ 2 callersFunctionisEphemeralPostgresRuntimeSchema
(schema string)
tests/integration/harness.go:412
↓ 2 callersFunctionisExplainStmt
isExplainStmt reports whether the query is an EXPLAIN statement (the EXPLAIN keyword followed by a space or '('). Used to avoid executing EXPLAIN at D
server/conn.go:1828
↓ 2 callersFunctionisIdentChar
(b byte)
transpiler/transpiler.go:754
↓ 2 callersFunctionisIdentChar
(c byte)
server/usersecrets/classify.go:390
↓ 2 callersFunctionisIdentStart
(c byte)
server/usersecrets/classify.go:386
↓ 2 callersFunctionisJSON
isJSON checks if a value looks like JSON
tests/integration/compare.go:457
↓ 2 callersFunctionisNullTest
isNullTest builds `<operand clone> IS NULL`.
transpiler/transform/operators.go:837
↓ 2 callersFunctionisProdContext
isProdContext reports whether a kube-context name denotes production.
controlplane/admin/devserver/main.go:208
↓ 2 callersFunctionisQueryLogSelfReferential
isQueryLogSelfReferential returns true if the query targets system.query_log, to prevent infinite recursion.
server/querylog.go:597
↓ 2 callersFunctionisReadOnlySQL
isReadOnlySQL reports whether the (single) statement looks read-only. Heuristic leading-keyword check, mirroring the conservative stance in server/con
controlplane/admin/impersonate.go:121
↓ 2 callersFunctionisSQLWhitespace
isSQLWhitespace reports whether b is a PostgreSQL lexer whitespace byte (space, tab, newline, carriage return, form feed, vertical tab).
transpiler/transpiler.go:685
↓ 2 callersFunctionisSessionExpr
(expr ast.Expr, sessionNames map[string]bool)
duckdbservice/session_conn_guard_test.go:103
↓ 2 callersFunctionisTableNotFound
isTableNotFound checks if an error indicates a table doesn't exist (can happen during concurrent DDL+DML).
tests/integration/ducklake_concurrency_test.go:2098
↓ 2 callersFunctionisTimeoutErr
(err error)
controlplane/control_test.go:234
↓ 2 callersFunctionisTransactionStartStmt
(query string)
duckdbservice/transient.go:29
↓ 2 callersMethodisUnsupportedConstraint
isUnsupportedConstraint checks if a table-level constraint is unsupported
transpiler/transform/ddl.go:292
↓ 2 callersFunctionisUserQueryError
isUserQueryError tells the log/observability path whether a query failure is user-attributable (Info-level "Query execution failed.") or a real system
server/conn_errors.go:278
↓ 2 callersFunctionisValidDuckLakeSpecVersion
isValidDuckLakeSpecVersion accepts the same major.minor format that server/ducklake.versionLessThan parses (e.g., "0.4", "1.0", "0.10"). We don't impo
controlplane/admin/api.go:989
↓ 2 callersFunctionis_e2e_or_journey_file
(path: str)
scripts/test_impact_plan.py:101
↓ 2 callersFunctionis_test_file
(path: str)
scripts/test_impact_plan.py:87
↓ 2 callersMethodjdbcUrl
()
scripts/client-compat/clients/jdbc/src/main/java/com/duckgres/compat/JdbcCompatTest.java:90
↓ 2 callersFunctionjsonFieldOrder
jsonFieldOrder returns the ordered top-level JSON keys for a struct type, skipping fields tagged json:"-". Embedded warehouse sub-structs are named fi
controlplane/admin/models_api.go:218
↓ 2 callersFunctionkindClass
(k: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:140
↓ 2 callersFunctionkindOrder
(k: string)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:139
↓ 2 callersFunctionlastFuncName
---- small AST constructors ----
transpiler/transform/functions_compat.go:250
↓ 2 callersMethodlatestClosedBucket
latestClosedBucket returns the newest bucket_start that is fully closed: every contribution for it has landed (grace exceeds the in-process flush inte
controlplane/compute_billing_api.go:41
↓ 2 callersMethodliveWorkerStats
liveWorkerStats counts live (non-terminating) worker pods in the namespace and returns the componentwise max of their per-pod resource requests — the
controlplane/headroom.go:313
↓ 2 callersFunctionloadConfigStoreColumnMetadata
(t *testing.T, db *sql.DB)
tests/configstore/migrations_postgres_test.go:571
↓ 2 callersFunctionloadConfigStoreIndexes
(t *testing.T, db *sql.DB)
tests/configstore/migrations_postgres_test.go:672
↓ 2 callersFunctionloadPoolCfg
()
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:245
↓ 2 callersMethodlookupOrgConfig
(orgID string)
controlplane/shared_worker_activator.go:657
↓ 2 callersFunctionlostEligibleState
(state configstore.WorkerState)
controlplane/k8s_pool_test.go:425
↓ 2 callersFunctionmakeControlPlaneInstanceID
(podUID, bootIDHex string)
controlplane/multitenant.go:678
↓ 2 callersMethodmarkWorkerDisruptable
markWorkerDisruptable flags a parked (hot-idle) worker as fair game for Karpenter consolidation. Async: release latency doesn't matter, and the worst-
controlplane/k8s_pool_disruption.go:64
↓ 2 callersMethodmarkWorkerLostIfCurrentLease
(lease workerLeaseSnapshot, origin LifecycleOrigin)
controlplane/k8s_pool_lifecycle.go:1061
↓ 2 callersMethodmarkWorkerProtected
markWorkerProtected flags a worker as actively serving (session assigned): its node must not be voluntarily disrupted. Synchronous (one fast PATCH) so
controlplane/k8s_pool_disruption.go:54
↓ 2 callersFunctionmatchOrg
(o?: string)
controlplane/admin/ui/src/pages/Live.tsx:40
↓ 2 callersFunctionmatchUser
(u?: string)
controlplane/admin/ui/src/pages/Live.tsx:41
↓ 2 callersFunctionmemoryLimit
memoryLimit returns the memory limit for a session: the full budget, with a floor of minMemoryPerSession (256MB).
controlplane/memory_rebalancer.go:203
↓ 2 callersFunctionmetricHistogramCountByLabel
(t *testing.T, metricName string, labels map[string]string)
server/flightsqlingress/ingress_test.go:370
↓ 2 callersFunctionmetricLabelsMatch
(metric *dto.Metric, labels map[string]string)
server/flightsqlingress/ingress_test.go:394
↓ 2 callersFunctionmilliUnitDecimal
milliUnitDecimal renders value/denom as an exact decimal string with no trailing zeros, using integer math only. denom must divide a power of 10 (1000
controlplane/configstore/compute_usage.go:52
↓ 2 callersFunctionmissingRequiredEnv
(s core.Scenario)
tests/scenario/runner_test.go:532
↓ 2 callersFunctionn1
(x: number)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:643
↓ 2 callersFunctionneedsCredentialRefresh
needsCredentialRefresh returns true if the DuckLake config uses temporary credentials that need periodic refresh (credential_chain or aws_sdk provider
server/server.go:2274
↓ 2 callersFunctionnewBufferedConn
newBufferedConn builds a clientConn that writes to an in-memory buffer, for asserting the exact backend messages a simple query produces. The returned
server/query_source_test.go:80
↓ 2 callersFunctionnewPostHogExporter
newPostHogExporter creates an OTLP log exporter for a single PostHog API key. Returns nil if the exporter cannot be created.
internal/cliboot/logging.go:229
↓ 2 callersFunctionnewTestRouterWithBucketSuffix
(store Store, bucketSuffix string)
controlplane/provisioning/api_test.go:181
↓ 2 callersFunctionnewWorkerSnapshot
newWorkerSnapshot wraps a WorkerRecord into a snapshot. Package-private so only configstore methods can construct snapshots.
controlplane/configstore/lifecycle_types.go:27
↓ 2 callersFunctionnodeReady
(node: any)
controlplane/admin/ui/src/pages/nodes/peepernetes.ts:387
↓ 2 callersMethodnodeSeenAtLocked
nodeSeenAtLocked returns the first-seen time for nodeName. Missing or unknown entries return `fallback` (typically time.Now()) so callers can treat th
controlplane/k8s_pool_acquire.go:761
↓ 2 callersFunctionnormalizeValue
normalizeValue normalizes a value for comparison
tests/integration/compare.go:402
↓ 2 callersFunctionnormalizedCapacityRetryAfter
(retryAfter time.Duration)
controlplane/capacity_policy.go:66
↓ 2 callersFunctionnullConstNode
(location int32)
transpiler/transform/boolpredicates.go:384
↓ 2 callersFunctionobjectStoreParentPrefix
objectStoreParentPrefix returns the parent directory of a URI-style object store path, preserving the trailing slash. For s3://bucket/team/ducklake/ i
server/ducklake/migration.go:680
↓ 2 callersFunctionobserveAcquireTotal
observeAcquireTotal records the end-to-end acquire latency for one session, tagged by the org, how the worker was ultimately obtained (source), and th
controlplane/acquire_metrics.go:100
↓ 2 callersFunctionobserveActivationDuration
(d time.Duration, image string)
controlplane/warm_pool_metrics.go:26
↓ 2 callersFunctionobserveControlPlaneWorkerAcquire
(d time.Duration)
controlplane/flight_ingress_metrics.go:64
↓ 2 callersFunctionobserveControlPlaneWorkerAcquireFailure
(reason string)
controlplane/flight_ingress_metrics.go:87
↓ 2 callersFunctionobserveControlPlaneWorkerSpawn
(d time.Duration)
controlplane/flight_ingress_metrics.go:71
↓ 2 callersFunctionobserveHotIdleReapRun
observeHotIdleReapRun stamps the last-successful-hot-idle-reap gauge with the given time. Called by both the leader janitor and the per-CP fallback re
controlplane/worker_lifecycle_metrics.go:335
↓ 2 callersFunctionobserveSNIRoutingResolution
(protocol string, aliasUsed bool)
controlplane/flight_ingress_metrics_k8s.go:57
↓ 2 callersMethodobtainCert
(ctx context.Context)
server/tlscert/acme_dns.go:234
↓ 2 callersFunctionopenAttachTestDB
(t *testing.T)
server/attach_timeout_test.go:11
↓ 2 callersFunctionopenCatalogConn
openCatalogConn opens a connection with an arbitrary startup `database` name. duckgres no longer masks that name onto a physical catalog — in standalo
tests/integration/catalog_demask_test.go:15
↓ 2 callersFunctionopenQueryLogDuckLakeDB
(cfg Config)
server/querylog.go:135
↓ 2 callersFunctionorgConnectionAdvisoryLockKey
(orgID string)
tests/configstore/org_connection_limiter_test.go:1324
← previousnext →1,601–1,700 of 5,901, ranked by callers