MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

FunctionTestProtocolLargeResults
TestProtocolLargeResults tests handling of large result sets
tests/integration/protocol_test.go:584
FunctionTestProtocolMultipleStatements
TestProtocolMultipleStatements tests handling of multiple statements
tests/integration/protocol_test.go:527
FunctionTestProtocolRowDescription
TestProtocolRowDescription tests that column metadata is correctly returned
tests/integration/protocol_test.go:477
FunctionTestProtocolSimpleQuery
TestProtocolSimpleQuery tests the simple query protocol
tests/integration/protocol_test.go:69
FunctionTestProtocolTransactions
TestProtocolTransactions tests transaction handling
tests/integration/protocol_test.go:252
FunctionTestProvisionAcceptsHyphenatedOrgID
(t *testing.T)
controlplane/provisioning/api_test.go:862
FunctionTestProvisionAllowsRetryAfterDeleted
(t *testing.T)
controlplane/provisioning/api_test.go:373
FunctionTestProvisionAllowsRetryAfterFailure
(t *testing.T)
controlplane/provisioning/api_test.go:349
FunctionTestProvisionAutoCreatesOrg
(t *testing.T)
controlplane/provisioning/api_test.go:214
FunctionTestProvisionCnpgShard
(t *testing.T)
controlplane/provisioning/api_test.go:587
FunctionTestProvisionComputesS3BucketName
When a bucket suffix is configured, a fresh per-org s3bucket gets the CP-owned name pinned on the warehouse (→ Duckling CR spec.dataStore.bucketName)
controlplane/provisioning/api_test.go:694
FunctionTestProvisionDuckLakeExternal
(t *testing.T)
controlplane/provisioning/api_test.go:645
FunctionTestProvisionEmitsAnalyticsEvent
(t *testing.T)
controlplane/provisioning/analytics_events_test.go:53
FunctionTestProvisionExternalDataStoreRequiresBucket
(t *testing.T)
controlplane/provisioning/api_test.go:787
FunctionTestProvisionExternalRequiresEndpointAndSecret
(t *testing.T)
controlplane/provisioning/api_test.go:764
FunctionTestProvisionFailureEmitsNoEvent
(t *testing.T)
controlplane/provisioning/analytics_events_test.go:88
FunctionTestProvisionNewOrgRequiresDefaultTeamID
TestProvisionNewOrgRequiresDefaultTeamID locks in the mandatory contract: provisioning a NEW org without default_team_id is rejected with 400 and crea
controlplane/provisioning/api_test.go:266
FunctionTestProvisionNoBucketSuffixLeavesNameEmpty
Without a configured suffix the CP doesn't name buckets — the warehouse keeps an empty bucket name and the composition derives it (legacy behavior).
controlplane/provisioning/api_test.go:735
FunctionTestProvisionPersistsDefaultTeamID
TestProvisionPersistsDefaultTeamID checks the default_team_id in the provision body is threaded through to the org record.
controlplane/provisioning/api_test.go:237
FunctionTestProvisionRejectionScenarioUsesExpectedProvisionFailure
(t *testing.T)
tests/scenario/runner_test.go:196
FunctionTestProvisionRejectsAurora
TestProvisionRejectsAurora locks in that the removed "aurora" metadata-store backend is no longer provisionable — the only creatable backends are cnpg
controlplane/provisioning/api_test.go:191
FunctionTestProvisionRejectsEmptyBody
(t *testing.T)
controlplane/provisioning/api_test.go:314
FunctionTestProvisionRejectsExistingNonTerminal
(t *testing.T)
controlplane/provisioning/api_test.go:329
FunctionTestProvisionRejectsInvalidOrgID
(t *testing.T)
controlplane/provisioning/api_test.go:816
FunctionTestProvisionRejectsOverlongSlugOrgID
(t *testing.T)
controlplane/provisioning/api_test.go:836
FunctionTestProvisionRejectsStringDefaultTeamID
TestProvisionRejectsStringDefaultTeamID pins the wire contract: default_team_id is a JSON NUMBER (PostHog's integer Team.id). A quoted string is a dec
controlplane/provisioning/api_test.go:878
FunctionTestProvisionRejectsUnsupportedMetadataStore
(t *testing.T)
controlplane/provisioning/api_test.go:801
FunctionTestProvisionRequiresDuckLakeEnabled
TestProvisionRequiresDuckLakeEnabled verifies the catalog gate: DuckLake is the only catalog (Iceberg support was removed), so any provision request w
controlplane/provisioning/api_test.go:619
FunctionTestProvisionSmokeScenarioUsesRunUniqueSupportedSteps
(t *testing.T)
tests/scenario/runner_test.go:126
FunctionTestProvisionTransactionRollsBackOnUserFailure
(t *testing.T)
controlplane/provisioning/api_test.go:519
FunctionTestPruneNodeFirstSeenLockedRemovesOnlyOrphanedEntries
(t *testing.T)
controlplane/k8s_pool_test.go:4505
FunctionTestPublishArtifactsBootstrapsAndReplacesRunData
(t *testing.T)
tests/perf/publisher/publisher_test.go:147
FunctionTestPublishArtifactsIfConfiguredInvokesPublisher
(t *testing.T)
tests/perf/harness_publisher_test.go:36
FunctionTestPublishArtifactsIfConfiguredReturnsClearPublisherError
(t *testing.T)
tests/perf/harness_publisher_test.go:65
FunctionTestPublishArtifactsIfConfiguredSkipsWhenDisabled
(t *testing.T)
tests/perf/harness_publisher_test.go:18
FunctionTestPublishArtifactsRollsBackOnInsertFailure
(t *testing.T)
tests/perf/publisher/publisher_test.go:207
FunctionTestPutStreamErrorMidStream
TestPutStreamErrorMidStream verifies that a reader failing mid-body leaves no servable entry, no LRU accounting, and no temp-file leak.
cmd/cache-proxy/cache_test.go:256
FunctionTestPutStreamOversizedObject
TestPutStreamOversizedObject documents that an object larger than maxBytes is stored anyway (the eviction loop drains the cache but stops when empty),
cmd/cache-proxy/cache_test.go:313
FunctionTestPutStreamOverwrite
TestPutStreamOverwrite verifies that re-streaming a key replaces it without double-counting currentSize or leaving a duplicate LRU entry (finding #2).
cmd/cache-proxy/cache_test.go:280
FunctionTestPutStreamRoundTrip
(t *testing.T)
cmd/cache-proxy/cache_test.go:222
FunctionTestPutWarehouseAllowsCustomProvisioningStates
(t *testing.T)
controlplane/admin/api_test.go:882
FunctionTestPutWarehouseDisablesPgBouncerWhenSetToFalse
(t *testing.T)
controlplane/admin/api_test.go:690
FunctionTestPutWarehouseMergesPartialUpdateIntoExistingWarehouse
(t *testing.T)
controlplane/admin/api_test.go:649
FunctionTestPutWarehousePreservesNestedFieldsOnPartialUpdate
(t *testing.T)
controlplane/admin/api_test.go:728
FunctionTestPutWarehouseRejectsCrossTenantSecretReference
(t *testing.T)
controlplane/admin/api_test.go:977
FunctionTestPutWarehouseRejectsCrossTenantSecretRefs
(t *testing.T)
controlplane/admin/api_test.go:918
FunctionTestPutWarehouseRejectsOversizedBody
(t *testing.T)
controlplane/admin/api_test.go:763
FunctionTestPutWarehouseRejectsRemovedIcebergField
(t *testing.T)
controlplane/admin/api_test.go:710
FunctionTestPutWarehouseRejectsSecretRefWithoutExplicitNamespace
(t *testing.T)
controlplane/admin/api_test.go:948
FunctionTestPutWarehouseRejectsSecretReferenceOutsideOrgPrefix
(t *testing.T)
controlplane/admin/api_test.go:1006
FunctionTestPutWarehouseRejectsSecretReferenceWithoutOrgPrefix
(t *testing.T)
controlplane/admin/api_test.go:1035
FunctionTestPutWarehouseRejectsSecretRefsOutsideTenantScope
(t *testing.T)
controlplane/admin/api_test.go:782
FunctionTestPutWarehouseRejectsSecretRefsWithoutWorkerNamespace
(t *testing.T)
controlplane/admin/api_test.go:815
FunctionTestPutWarehouseRejectsServerManagedFields
(t *testing.T)
controlplane/admin/api_test.go:859
FunctionTestPutWarehouseRejectsUnknownOrg
(t *testing.T)
controlplane/admin/api_test.go:845
FunctionTestPutWarehouseUpsertsForExistingOrg
(t *testing.T)
controlplane/admin/api_test.go:562
FunctionTestQueriesAggregateAcrossCPs
(t *testing.T)
controlplane/admin/live_aggregate_test.go:125
FunctionTestQueryContextCancelsDoGetBeforeWaitingAfterSchemaError
(t *testing.T)
server/flightclient/flight_executor_test.go:374
FunctionTestQueryContextReleasesHandleWhenDoGetFails
(t *testing.T)
server/flightclient/flight_executor_test.go:341
FunctionTestQueryDetailFansOutAcrossCPs
TestQueryDetailFansOutAcrossCPs proves /queries/by-worker/:wid scatter-gathers: when the serving replica doesn't own the worker, it fetches peers and
controlplane/admin/live_test.go:64
FunctionTestQueryDetailRoute
(t *testing.T)
controlplane/admin/live_test.go:21
FunctionTestQueryDetailWorkerIDDistinguishesCollidingPIDs
TestQueryDetailWorkerIDDistinguishesCollidingPIDs is the regression for the addressing bug: PIDs are per-org (every stack starts at 1000), so two orgs
controlplane/admin/live_test.go:100
FunctionTestQueryErrorsLegacyMetricRemoved
(t *testing.T)
server/query_metrics_test.go:311
FunctionTestQueryLogDuckLakeDBDSNAllowsUnsignedExtensions
(t *testing.T)
server/querylog_kafka_writer_test.go:827
FunctionTestQueryLogDuckLakeEntryWriterResolverEvictsLeastRecentlyUsedWriter
(t *testing.T)
server/querylog_kafka_writer_test.go:1039
FunctionTestQueryLogDuckLakeEntryWriterResolverPrunesIdleWritersWithoutResolve
(t *testing.T)
server/querylog_kafka_writer_test.go:1091
FunctionTestQueryLogDuckLakeEntryWriterResolverRefreshesExpiringCredentials
(t *testing.T)
server/querylog_kafka_writer_test.go:1147
FunctionTestQueryLogDuckLakeEntryWriterResolverRefreshesIdleWriters
(t *testing.T)
server/querylog_kafka_writer_test.go:998
FunctionTestQueryLogKafkaEventBatchInsertDeduplicatesEventIDsWithinBatch
(t *testing.T)
server/querylog_kafka_writer_test.go:937
FunctionTestQueryLogKafkaEventBatchInsertIsIdempotentByEventID
(t *testing.T)
server/querylog_kafka_writer_test.go:881
FunctionTestQueryLogKafkaEventInsertIsIdempotentByEventID
(t *testing.T)
server/querylog_kafka_writer_test.go:833
FunctionTestQueryLogKafkaWriterAllowsEmptyQueryText
(t *testing.T)
server/querylog_kafka_writer_test.go:755
FunctionTestQueryLogKafkaWriterCommitsDroppedInvalidEvent
(t *testing.T)
server/querylog_kafka_writer_test.go:734
FunctionTestQueryLogKafkaWriterCommitsDroppedWriteFailure
(t *testing.T)
server/querylog_kafka_writer_test.go:202
FunctionTestQueryLogKafkaWriterCommitsWhenOrgHasNoDuckLakeTarget
(t *testing.T)
server/querylog_kafka_writer_test.go:791
FunctionTestQueryLogKafkaWriterDroppedWriteFailureMetricHasReason
(t *testing.T)
server/querylog_kafka_writer_test.go:242
FunctionTestQueryLogKafkaWriterRetryLogRedactsSecrets
(t *testing.T)
server/querylog_kafka_writer_test.go:304
FunctionTestQueryLogKafkaWriterRunBatchesMessagesByOrg
(t *testing.T)
server/querylog_kafka_writer_test.go:443
FunctionTestQueryLogKafkaWriterRunDropsFailedOrgBatchAndCommitsPartition
(t *testing.T)
server/querylog_kafka_writer_test.go:615
FunctionTestQueryLogKafkaWriterRunDropsFailedWriteBeforeFetchingNext
(t *testing.T)
server/querylog_kafka_writer_test.go:324
FunctionTestQueryLogKafkaWriterRunFlushesOrgBatchOnInterval
(t *testing.T)
server/querylog_kafka_writer_test.go:690
FunctionTestQueryLogKafkaWriterRunKeepsKafkaPartitionsIndependent
(t *testing.T)
server/querylog_kafka_writer_test.go:521
FunctionTestQueryLogKafkaWriterRunRetriesCommitFailureBeforeFetchingNext
(t *testing.T)
server/querylog_kafka_writer_test.go:386
FunctionTestQueryLogKafkaWriterWritesAndCommitsAfterSuccess
(t *testing.T)
server/querylog_kafka_writer_test.go:151
FunctionTestQueryLogNonBlocking
(t *testing.T)
server/querylog_test.go:136
FunctionTestQueryLogWriterActivationErrorIsNoDuckLakeTarget
(t *testing.T)
querylog_writer_mode_kubernetes_test.go:48
FunctionTestQueryLogWriterAlertsReferenceWriterMetrics
(t *testing.T)
tests/manifests/manifests_test.go:218
FunctionTestQueryLogWriterManifestDefinesDeployment
(t *testing.T)
tests/manifests/manifests_test.go:96
FunctionTestQueryLogWriterManifestRequiresRuntimeConfig
(t *testing.T)
tests/manifests/manifests_test.go:121
FunctionTestQueryLoggerFlushBatchPersistsOrgID
(t *testing.T)
server/querylog_test.go:449
FunctionTestQueryLoggerStopIsIdempotent
(t *testing.T)
server/querylog_test.go:162
FunctionTestQueryMetricsClassifiesSimpleWireWriteFailureAsError
(t *testing.T)
server/query_metrics_test.go:199
FunctionTestQueryMetricsClassifiesTerminalWireWriteFailureAsError
(t *testing.T)
server/query_metrics_test.go:232
FunctionTestQueryMetricsCountExtendedParseQueryErrorsWithoutDuration
(t *testing.T)
server/query_metrics_test.go:171
FunctionTestQueryMetricsWrapSimpleAndExtendedEntryPoints
(t *testing.T)
server/query_metrics_test.go:121
FunctionTestQueryProgressTimeout
(t *testing.T)
duckdbservice/progress_test.go:50
FunctionTestQueryReturnsResults
(t *testing.T)
server/conn_test.go:659
FunctionTestQueryReturnsResultsWithComments
TestQueryReturnsResultsWithComments verifies that queries with leading comments are correctly identified as result-returning queries.
server/conn_test.go:984
FunctionTestQuerySourceGetter
TestQuerySourceGetter covers the session accessor a future compute meter reads: unset defaults to "standard", a SET value round-trips, and reset to em
server/query_source_test.go:15
FunctionTestQuerySourceMixedBatchSetThenShow
TestQuerySourceMixedBatchSetThenShow is the regression for the e2e bug: a single simple query batching `SET duckgres.query_source='endpoints'; SHOW du
server/query_source_test.go:131
← previousnext →5,001–5,100 of 5,901, ranked by callers