MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

FunctionTestFlightAuthSessionStoreRejectsNewSessionsWhileDraining
(t *testing.T)
server/flightsqlingress/ingress_test.go:1470
FunctionTestFlightAuthSessionStoreTerminalReconnectCloseIsAtomicWithDurableRefresh
(t *testing.T)
server/flightsqlingress/ingress_test.go:1402
FunctionTestFlightAuthSessionStoreTerminalReconnectDoesNotCloseUpdatedDurableRecord
(t *testing.T)
server/flightsqlingress/ingress_test.go:1339
FunctionTestFlightAuthSessionStoreWaitForZeroSessions
(t *testing.T)
server/flightsqlingress/ingress_test.go:1498
FunctionTestFlightExecutorWithSessionAddsOwnerEpochHeader
(t *testing.T)
server/flightclient/flight_executor_test.go:26
FunctionTestFlightHandlersDoNotUseSessionConnDirectly
(t *testing.T)
duckdbservice/session_conn_guard_test.go:15
FunctionTestFlightIngressAcceptsNewConnectionsAfterHandover
(t *testing.T)
tests/controlplane/flight_ingress_test.go:218
FunctionTestFlightIngressIncludeSchemaLowWorkerRegression
(t *testing.T)
tests/controlplane/flight_ingress_test.go:117
FunctionTestFlightIngressPassesClientSNIToValidator
(t *testing.T)
server/flightsqlingress/ingress_test.go:269
FunctionTestFlightIngressServerIssuedSessionTokenAllowsTokenOnlyAuth
(t *testing.T)
tests/controlplane/flight_ingress_test.go:173
FunctionTestFlightOrgFromContextResolvesViaSNI
TestFlightOrgFromContextResolvesViaSNI verifies that session routing derives the org from the connection's TLS SNI (the load-bearing path the no-colli
controlplane/sni_kubernetes_test.go:381
FunctionTestFlightRowSetCloseSkipsWaitAfterCleanEOF
(t *testing.T)
server/flightclient/flight_executor_test.go:244
FunctionTestFlightRowSetCloseSkipsWaitAfterExecutorMarkedDead
(t *testing.T)
server/flightclient/flight_executor_test.go:273
FunctionTestFlightRowSetCloseTreatsTerminalWaitFailureAsBestEffort
(t *testing.T)
server/flightclient/flight_executor_test.go:310
FunctionTestFlightRowSetCloseWaitsForWorkerDoGetCleanup
(t *testing.T)
server/flightclient/flight_executor_test.go:200
FunctionTestFlightSessionTokenLifecycleIssueValidateRevokeExpiryMatrix
(t *testing.T)
server/flightsqlingress/ingress_test.go:927
FunctionTestFlightValidatorMatchedSNI
Flight identity is now SNI-only in every mode: the org is resolved from the managed hostname via ResolveSNIPrefix and the user is authenticated within
controlplane/sni_kubernetes_test.go:346
FunctionTestFlightValidatorRejectsUnmanagedHostname
TestFlightValidatorRejectsUnmanagedHostname: a non-managed hostname (or empty SNI) has no org and must fail — there is no username-scan fallback.
controlplane/sni_kubernetes_test.go:428
FunctionTestFlightValidatorUnknownOrg
TestFlightValidatorUnknownOrg: SNI matches the suffix, but the prefix resolves to no org. Must return false.
controlplane/sni_kubernetes_test.go:411
FunctionTestFormatArgValueBackslashRoundTrip
Audit H5 regression test. formatArgValue doubles backslashes (`\` → `\\`) before wrapping the value in a single-quoted literal. DuckDB standard `'...
server/flightclient/interpolate_backslash_test.go:23
FunctionTestFormatBytes
(t *testing.T)
controlplane/memory_rebalancer_test.go:50
FunctionTestFormatBytesPrecision
(t *testing.T)
controlplane/memory_rebalancer_test.go:126
FunctionTestFormatCopyValue
(t *testing.T)
server/conn_test.go:2321
FunctionTestFormatInterval
(t *testing.T)
server/conn_test.go:3397
FunctionTestFormatOrderedMapValue_Basic
formatOrderedMapValue tests. Live here in package server because the function under test calls formatValue (defined in conn_results.go) which switches
server/format_ordered_map_test.go:14
FunctionTestFormatOrderedMapValue_Empty
(t *testing.T)
server/format_ordered_map_test.go:30
FunctionTestFormatOrderedMapValue_IntegerKeys
(t *testing.T)
server/format_ordered_map_test.go:22
FunctionTestFormatOrderedMapValue_NilValue
(t *testing.T)
server/format_ordered_map_test.go:38
FunctionTestFormatOrderedMapValue_PreservesOrder
(t *testing.T)
server/format_ordered_map_test.go:46
FunctionTestFormatSQLValue
(t *testing.T)
server/ducklake/migration_test.go:233
FunctionTestFormatTypeTimePrecision
TestFormatTypeTimePrecision tests that format_type correctly handles time type precision
tests/integration/catalog_test.go:555
FunctionTestForwardUncachedLogsNon2xxWithBodyPreview
TestForwardUncachedLogsNon2xxWithBodyPreview is the symptomatic case the PR addresses: when an upstream rejects a PUT/POST (e.g. an S3 endpoint return
cmd/cache-proxy/proxy_test.go:945
FunctionTestForwardUncachedLogsSuccess
TestForwardUncachedLogsSuccess locks in the invariant that a successful PUT/POST through the forward-proxy path produces a log line. Pre-PR this path
cmd/cache-proxy/proxy_test.go:912
FunctionTestForwardUncachedPreservesMethod
TestForwardUncachedPreservesMethod walks every method that hits the non-GET path and checks the origin saw the same method. Ensures we don't accidenta
cmd/cache-proxy/proxy_test.go:1364
FunctionTestForwardUncachedPreservesNon2xxResponseBodyBytewise
TestForwardUncachedPreservesNon2xxResponseBodyBytewise covers the log-preview path on non-2xx — the proxy reads the full body for the body_preview log
cmd/cache-proxy/proxy_test.go:1338
FunctionTestForwardUncachedPreservesQueryString
TestForwardUncachedPreservesQueryString covers AWS S3 multipart-upload query params (?uploads, ?partNumber=N&uploadId=...). Sigv4's canonical request
cmd/cache-proxy/proxy_test.go:1285
FunctionTestForwardUncachedPreservesRequestHeaders
TestForwardUncachedPreservesRequestHeaders verifies that arbitrary non-hop-by-hop request headers (Authorization, x-amz-*, custom) round-trip to the o
cmd/cache-proxy/proxy_test.go:1203
FunctionTestForwardUncachedPreservesResponseBodyBytewise
TestForwardUncachedPreservesResponseBodyBytewise locks in that 2xx response bodies are forwarded byte-for-byte (no compression / no transcoding). Duck
cmd/cache-proxy/proxy_test.go:1309
FunctionTestForwardUncachedPropagatesContentLength
TestForwardUncachedPropagatesContentLength is the regression test for the AWS S3 "501 Not Implemented" error on parquet PUTs. The proxy used to build
cmd/cache-proxy/proxy_test.go:1149
FunctionTestForwardUncachedStripsHopByHopBothDirections
TestForwardUncachedStripsHopByHopBothDirections verifies that hop-by-hop headers (per RFC 7230 §6.1) are NOT forwarded in either direction. Forwarding
cmd/cache-proxy/proxy_test.go:1243
FunctionTestForwardUncachedTruncatesLargeBodyInLog
TestForwardUncachedTruncatesLargeBodyInLog verifies previewBody is applied — a multi-KiB error envelope must not flood log storage.
cmd/cache-proxy/proxy_test.go:1120
FunctionTestFrozenDBTScenarioUsesSupportedStepsAndRelativeProject
(t *testing.T)
tests/scenario/runner_test.go:351
FunctionTestFrozenMetadataScenarioRequiresDatasetURI
(t *testing.T)
tests/scenario/runner_test.go:230
FunctionTestFrozenMetadataScenarioResolvesEnvTemplates
(t *testing.T)
tests/scenario/runner_test.go:243
FunctionTestFrozenPerfScenarioUsesSupportedStepsAndRelativeCatalog
(t *testing.T)
tests/scenario/runner_test.go:301
FunctionTestFrozenSuccessScenariosUseValidProvisioningSlugs
(t *testing.T)
tests/scenario/runner_test.go:158
FunctionTestFunctionsAggregate
TestFunctionsAggregate tests aggregate functions
tests/integration/functions_test.go:199
FunctionTestFunctionsArray
TestFunctionsArray tests array functions
tests/integration/functions_test.go:304
FunctionTestFunctionsConditional
TestFunctionsConditional tests conditional functions
tests/integration/functions_test.go:330
FunctionTestFunctionsDateTime
TestFunctionsDateTime tests date/time functions
tests/integration/functions_test.go:146
FunctionTestFunctionsJSON
TestFunctionsJSON tests JSON functions
tests/integration/functions_test.go:252
FunctionTestFunctionsMisc
TestFunctionsMisc tests miscellaneous functions
tests/integration/functions_test.go:354
FunctionTestFunctionsNumeric
TestFunctionsNumeric tests numeric functions
tests/integration/functions_test.go:89
FunctionTestFunctionsString
TestFunctionsString tests string functions
tests/integration/functions_test.go:8
FunctionTestGenerateDeterministicStable
(t *testing.T)
tests/perf/datasets/generator_test.go:5
FunctionTestGetCommandType
(t *testing.T)
server/conn_test.go:200
FunctionTestGetCommandTypeWithConstraints
Note: DDL rewriting tests (rewriteForDuckLake, isNoOpCommand, getNoOpCommandTag) have been moved to transpiler/transpiler_test.go. The transpiler pack
server/ducklake_test.go:11
FunctionTestGetFlightSessionRecordReturnsNilWhenMissing
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:2032
FunctionTestGetOrgIncludesWarehouse
(t *testing.T)
controlplane/admin/api_test.go:495
FunctionTestGetOrgOmitsMaxConnections
(t *testing.T)
controlplane/admin/api_test.go:1176
FunctionTestGetOrgOmitsMinWorkers
(t *testing.T)
controlplane/admin/api_test.go:1156
FunctionTestGetQuerySchemaExplainDoesNotExecute
(t *testing.T)
duckdbservice/arrow_helpers_test.go:1024
FunctionTestGetQuerySchemaTrailingSemicolon
(t *testing.T)
duckdbservice/arrow_helpers_test.go:1185
FunctionTestGetTouchAndCloseFlightSessionRecordPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:1920
FunctionTestGetWarehouseNotFound
(t *testing.T)
controlplane/provisioning/api_test.go:506
FunctionTestGetWarehouseReturnsNotFoundWhenMissing
(t *testing.T)
controlplane/admin/api_test.go:548
FunctionTestGetWarehouseStatus
(t *testing.T)
controlplane/provisioning/api_test.go:475
FunctionTestGetWorkerRecordReturnsNilNilForMissingRow
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:743
FunctionTestGoNilDerefStillPanics
TestGoNilDerefStillPanics pins the chaining contract: the native handler must NOT hijack SIGSEGV raised by Go code — those keep producing ordinary Go
internal/crashhandler/crashhandler_test.go:113
FunctionTestGoldenQueryPerformanceHarness
(t *testing.T)
tests/perf/harness_test.go:47
FunctionTestGrafanaQueries
TestGrafanaQueries tests queries commonly issued by Grafana
tests/integration/clients/clients_test.go:148
FunctionTestHandleBindAcceptsValidParam
(t *testing.T)
server/conn_bind_test.go:124
FunctionTestHandleBindMalformedFieldsReturnProtocolViolation
Regression test for #720: malformed counts/lengths in a Bind message used to reach make() unvalidated and panic with "makeslice: len out of range" (re
server/conn_bind_test.go:86
FunctionTestHandleBindRejectsOversizedParamLength
Regression test for #717: a Bind parameter length is client-controlled and must be bounded by the remaining message bytes before allocating — a client
server/conn_bind_test.go:54
FunctionTestHandleBindValidMessageStillBinds
Sanity-check the happy path still binds: one NULL param (length -1), default format codes everywhere.
server/conn_bind_test.go:145
FunctionTestHandleConnectLogsDialFailure
TestHandleConnectLogsDialFailure: when the upstream is unreachable, the proxy must respond 502 to the client AND emit a Warn so the failure is visible
cmd/cache-proxy/proxy_test.go:1087
FunctionTestHandleConnectLogsOpenAndClose
TestHandleConnectLogsOpenAndClose drives a real HTTPS CONNECT tunnel through the proxy and asserts that: - "Forward-proxy CONNECT opened." fires when
cmd/cache-proxy/proxy_test.go:988
FunctionTestHandleConnectionIsolated_GSSENCStallReturns
(t *testing.T)
server/startup_timeout_test.go:65
FunctionTestHandleConnectionNonSSLStartupDoesNotRecordFailedAuth
(t *testing.T)
controlplane/control_test.go:75
FunctionTestHandleCopyInCSVWithBlob
(t *testing.T)
server/conn_test.go:3953
FunctionTestHandleCopyInCSVWithBlob_NullValues
(t *testing.T)
server/conn_test.go:4054
FunctionTestHandleCopyOutLogsSyntaxError
(t *testing.T)
server/conn_querylog_feedback_test.go:130
FunctionTestHandleCopyOutWithBinaryShorthandWritesBinaryStream
(t *testing.T)
server/conn_test.go:2991
FunctionTestHandleDescribeExplainDoesNotExecute
(t *testing.T)
server/conn_describe_test.go:99
FunctionTestHandleDescribePortalPreservesExistingLimit
(t *testing.T)
server/conn_describe_test.go:135
FunctionTestHandleDescribePortalUsesLimitZeroProbe
(t *testing.T)
server/conn_describe_test.go:66
FunctionTestHandleExecuteAbortedRecoveryPreservesAlterViewFallback
(t *testing.T)
server/conn_test.go:1859
FunctionTestHandleExecuteLogsRowsErr
(t *testing.T)
server/conn_querylog_feedback_test.go:151
FunctionTestHandleExecuteRecoversAbortedAutocommitAlterViewFallback
(t *testing.T)
server/conn_test.go:1911
FunctionTestHandleFetchCursorLogsMissingCursorError
(t *testing.T)
server/conn_querylog_feedback_test.go:103
FunctionTestHandlePeerHasAndGet
(t *testing.T)
cmd/cache-proxy/proxy_test.go:759
FunctionTestHandlePeerRejectsInvalidKey
(t *testing.T)
cmd/cache-proxy/proxy_test.go:797
FunctionTestHandleProxyDoesNotCacheErrorResponses
TestHandleProxyDoesNotCacheErrorResponses: a transient origin error must not poison the cache. The next request for the same key has to hit the origin
cmd/cache-proxy/proxy_test.go:713
FunctionTestHandleProxyDoesNotRetryTerminalOriginStatuses
(t *testing.T)
cmd/cache-proxy/proxy_test.go:612
FunctionTestHandleProxyForwardsOrigin400Verbatim
TestHandleProxyForwardsOrigin400Verbatim is the case the user actually hit: S3 returns 400 with an XML envelope (<Code>ExpiredToken</Code>) and DuckDB
cmd/cache-proxy/proxy_test.go:650
FunctionTestHandleProxyForwardsOrigin404Verbatim
TestHandleProxyForwardsOrigin404Verbatim: a 404 must stay a 404 so DuckDB / DuckLake can distinguish "object missing" (terminal) from "transient gatew
cmd/cache-proxy/proxy_test.go:679
FunctionTestHandleProxyForwardsOrigin416Verbatim
TestHandleProxyForwardsOrigin416Verbatim: Range Not Satisfiable carries semantically important metadata for DuckLake; collapsing to 502 made it look l
cmd/cache-proxy/proxy_test.go:694
FunctionTestHandleProxyForwardsOrigin5xxVerbatim
TestHandleProxyForwardsOrigin5xxVerbatim: a transient 5xx that keeps failing must eventually be passed back to DuckDB unchanged. Translating a 500 int
cmd/cache-proxy/proxy_test.go:203
FunctionTestHandleProxyGETMissThenHit
(t *testing.T)
cmd/cache-proxy/proxy_test.go:125
FunctionTestHandleProxyHEADForwardedUncached
(t *testing.T)
cmd/cache-proxy/proxy_test.go:158
← previousnext →4,401–4,500 of 5,901, ranked by callers