MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

FunctionTestDoCopyFromStdinKeepsRawSQLTransactionDrainOpenWhileReceiving
(t *testing.T)
duckdbservice/copy_from_stdin_test.go:332
FunctionTestDoCopyFromStdinRejectsConcurrentSessionOperation
(t *testing.T)
duckdbservice/copy_from_stdin_test.go:189
FunctionTestDoCopyFromStdinRejectsMissingPlaceholder
(t *testing.T)
duckdbservice/copy_from_stdin_test.go:215
FunctionTestDoCopyFromStdinRequiresSession
(t *testing.T)
duckdbservice/copy_from_stdin_test.go:242
FunctionTestDoGetStatementConsumesHandleBeforeStreaming
(t *testing.T)
duckdbservice/flight_handler_test.go:1061
FunctionTestDoGetStatementEmptyQueryDeletesHandle
(t *testing.T)
duckdbservice/flight_handler_test.go:1030
FunctionTestDoGetStatementKeepsRawSQLTransactionDrainOpenBeforeStreamingStarts
(t *testing.T)
duckdbservice/flight_handler_test.go:1105
FunctionTestDoPutCommandStatementUpdateKeepsRecoverySerializedPerSession
(t *testing.T)
server/flightsqlingress/ingress_test.go:493
FunctionTestDockerComposeArgsAllowsMultipleServices
(t *testing.T)
tests/integration/harness_test.go:19
FunctionTestDockerComposeArgsStartsOnlyRequestedServices
(t *testing.T)
tests/integration/harness_test.go:9
FunctionTestDockerComposeArgsWithoutServices
(t *testing.T)
tests/integration/harness_test.go:29
FunctionTestDockerComposeCommandUsesDockerCLIPlugin
(t *testing.T)
tests/integration/harness_test.go:39
FunctionTestDockerComposeCoreStack
TestDockerComposeCoreStack guards the shape of the integration compose stack: the comparison Postgres, the DuckLake metadata Postgres, and the MinIO o
tests/integration/composefile/compose_test.go:14
FunctionTestDoubleUSR1Ignored
(t *testing.T)
tests/controlplane/controlplane_test.go:539
FunctionTestDrainAndRetireDrainedSequence
(t *testing.T)
controlplane/worker_lifecycle_test.go:283
FunctionTestDriverUsesDuckhogVariant
(t *testing.T)
tests/perf/drivers/flight/driver_test.go:21
FunctionTestDriverUsesPGWireVariant
(t *testing.T)
tests/perf/drivers/pgwire/driver_test.go:21
FunctionTestDuckDBAcceptsTranspiledCasts
TestDuckDBAcceptsTranspiledCasts confirms the exact SQL forms emitted by the transpiler's fixupAST cast fixes execute against real DuckDB.
server/cast_compat_test.go:12
FunctionTestDuckDBTypeToArrow
(t *testing.T)
duckdbservice/arrowmap/arrowmap_test.go:42
FunctionTestDuckLakeBooleanPredicatesAndMergeInControlPlane
(t *testing.T)
tests/controlplane/ducklake_bool_merge_test.go:84
FunctionTestDuckLakeCheckpointerDisabledWhenIntervalZero
(t *testing.T)
server/checkpoint_test.go:43
FunctionTestDuckLakeCheckpointerDisabledWhenNoMetadataStore
(t *testing.T)
server/checkpoint_test.go:28
FunctionTestDuckLakeCheckpointerStopIsIdempotent
(t *testing.T)
server/checkpoint_test.go:9
FunctionTestDuckLakeCheckpointerStopWaitsForLoop
(t *testing.T)
server/checkpoint_test.go:183
FunctionTestDuckLakeConcurrentTransactions
TestDuckLakeConcurrentTransactions is an extensive concurrency test suite for DuckLake transactions. It exercises concurrent inserts, updates, deletes
tests/integration/ducklake_concurrency_test.go:130
FunctionTestDuckLakeMetadataIndexesNamesMatchStatements
(t *testing.T)
server/server_test.go:372
FunctionTestDuckLakeProfilePolicies
(t *testing.T)
transpiler/backend/profile_test.go:5
FunctionTestDucklingBucketName
(t *testing.T)
controlplane/configstore/bucketname_test.go:5
FunctionTestDucklingCreateCnpgShardRequiresDuckLake
TestDucklingCreateCnpgShardRequiresDuckLake verifies the Create guard: a cnpg-shard CR without DuckLake has nothing to attach and is rejected.
controlplane/provisioner/controller_test.go:812
FunctionTestDucklingCreateExternalDataStoreRequiresBucket
TestDucklingCreateExternalDataStoreRequiresBucket verifies the dataStore guard: an external dataStore needs a bucket name.
controlplane/provisioner/controller_test.go:987
FunctionTestDucklingCreateExternalRequiresFields
TestDucklingCreateExternalRequiresFields verifies the Create guard: an external CR is rejected without endpoint + passwordAwsSecret.
controlplane/provisioner/controller_test.go:974
FunctionTestDucklingCreateRejectsUnsupportedType
TestDucklingCreateRejectsUnsupportedType verifies the control plane refuses to create metadata-store types it doesn't provision (notably "external").
controlplane/provisioner/controller_test.go:833
FunctionTestDucklingCreateUsesNameVerbatim
TestDucklingCreateUsesNameVerbatim locks in the naming contract: Create names the CR exactly the passed name — no lowercasing, hyphen-stripping, or an
controlplane/provisioner/controller_test.go:1003
FunctionTestDucklingMetadataStoreAddressPrefersPgBouncerEndpoint
(t *testing.T)
controlplane/org_activation_test.go:37
FunctionTestDucklingMetadataStoreAddressRejectsEmptyEndpoints
(t *testing.T)
controlplane/org_activation_test.go:71
FunctionTestDucklingMetadataStoreAddressRejectsInvalidPgBouncerEndpoint
(t *testing.T)
controlplane/org_activation_test.go:57
FunctionTestDucklingMetadataStoreAddressUsesDirectEndpointByDefault
(t *testing.T)
controlplane/org_activation_test.go:18
FunctionTestDucklingsMetadataDegrades
TestDucklingsMetadataDegrades pins the nil-lister and error paths: nil → available=false (not 500), lister error → 500.
controlplane/admin/ducklings_metadata_test.go:91
FunctionTestDucklingsMetadataHandler
TestDucklingsMetadataHandler pins the wire shape: entries keyed by CR name, cnpg-shard entries carry the parsed shard, external entries do not.
controlplane/admin/ducklings_metadata_test.go:59
FunctionTestETLBatchOperations
(t *testing.T)
server/etl_patterns_test.go:194
FunctionTestETLCTEQueries
(t *testing.T)
server/etl_patterns_test.go:310
FunctionTestETLCommentedQueries
TestETLQueryPatterns tests query patterns commonly used by ETL tools like Fivetran. These patterns include: - Queries with leading comments (e.g., /*
server/etl_patterns_test.go:15
FunctionTestETLMetadataQueries
(t *testing.T)
server/etl_patterns_test.go:125
FunctionTestETLSchemaEvolution
(t *testing.T)
server/etl_patterns_test.go:252
FunctionTestEffectiveDefaultWorkerTTL
(t *testing.T)
controlplane/multitenant_default_ttl_test.go:10
FunctionTestEffectiveSessionDefaultCommandDuckLakeClientSearchPathOnly
(t *testing.T)
controlplane/session_search_path_test.go:5
FunctionTestEffectiveSessionDefaultCommandEmptyForDuckLake
(t *testing.T)
controlplane/session_search_path_test.go:17
FunctionTestEmptyQuery
TestEmptyQuery tests that empty queries return EmptyQueryResponse, not an error.
tests/integration/protocol_test.go:46
FunctionTestEmptyTableOperations
TestEmptyTableOperations tests operations on tables with no rows. Note: basic empty SELECT is covered by TestProtocolSimpleQuery/empty_result. These t
tests/integration/edge_cases_test.go:845
FunctionTestEnableUserClearsFlag
TestEnableUserClearsFlag: enable persists disabled=false and reloads.
controlplane/admin/kill_switch_test.go:141
FunctionTestEncodeBinary
(t *testing.T)
server/types_test.go:497
FunctionTestEncodeBinaryJSON
TestEncodeBinaryJSON verifies that encodeBinary routes JSON/JSONB OIDs through encodeJSON rather than the default text encoder.
server/types_test.go:1449
FunctionTestEncodeBool
(t *testing.T)
server/types_test.go:178
FunctionTestEncodeBytea
(t *testing.T)
server/types_test.go:465
FunctionTestEncodeDate
(t *testing.T)
server/types_test.go:377
FunctionTestEncodeDecodeInterval
(t *testing.T)
server/types_test.go:1284
FunctionTestEncodeDecodeTime
(t *testing.T)
server/types_test.go:1212
FunctionTestEncodeDecodeUBIGINTMax
(t *testing.T)
server/types_test.go:1085
FunctionTestEncodeDecodeUUID
(t *testing.T)
server/types_test.go:1164
FunctionTestEncodeFloat4
(t *testing.T)
server/types_test.go:315
FunctionTestEncodeFloat8
(t *testing.T)
server/types_test.go:346
FunctionTestEncodeInt2
(t *testing.T)
server/types_test.go:212
FunctionTestEncodeInt4
(t *testing.T)
server/types_test.go:253
FunctionTestEncodeInt8
(t *testing.T)
server/types_test.go:285
FunctionTestEncodeJSON
TestEncodeJSON verifies that encodeJSON re-serializes Go native values back to valid JSON text. The Go DuckDB driver's getJSON() deserializes JSON via
server/types_test.go:1396
FunctionTestEncodeNumeric
(t *testing.T)
server/types_test.go:885
FunctionTestEncodeTimestamp
(t *testing.T)
server/types_test.go:421
FunctionTestEndTransactionKeepsDrainOpenForOpenTransaction
(t *testing.T)
duckdbservice/flight_handler_test.go:816
FunctionTestEndTransactionRollbackReleasesAbandonedStatementOperation
(t *testing.T)
duckdbservice/flight_handler_test.go:868
FunctionTestEnrichSpanWithProfilingSummaryIncludesResourceUsage
(t *testing.T)
server/profiling_test.go:195
FunctionTestEnsureQueryLogTableAddsOrgIDToExistingTable
(t *testing.T)
server/querylog_test.go:541
FunctionTestEnsureQueryLogTableCreatesResourceUsageColumns
(t *testing.T)
server/querylog_test.go:375
FunctionTestEnsureQueryLogTableWithAttachedCatalog
(t *testing.T)
server/querylog_test.go:422
FunctionTestErrorRatioFiltersErrors
error_ratio's numerator must filter outcome="error" and differ from the denominator base (regression: it previously used the same org-only selector fo
controlplane/admin/metrics_proxy_test.go:33
FunctionTestErrorRecovery
TestErrorRecovery tests that sessions remain usable after various error states. Note: basic single-error recovery is covered by TestProtocolErrors/err
tests/integration/edge_cases_test.go:173
FunctionTestErrorsAggregateAcrossCPs
errors merges each CP's recent-errors ring (disjoint per CP), returns them newest-first, and honors the scope=local fan-out guard + post-merge filters
controlplane/admin/live_aggregate_test.go:200
FunctionTestEscapeSQLStringLiteral
(t *testing.T)
server/querylog_test.go:367
FunctionTestExecUserSecretDDLCreatePersists
(t *testing.T)
server/conn_user_secrets_test.go:44
FunctionTestExecUserSecretDDLDropDeletesFromStore
(t *testing.T)
server/conn_user_secrets_test.go:174
FunctionTestExecUserSecretDDLDropFallsBackToStore
A stored secret whose replay failed doesn't exist on the session; DROP must still be able to remove it from the store — but ONLY when the session-side
server/conn_user_secrets_test.go:200
FunctionTestExecUserSecretDDLDropOtherErrorsDoNotTouchStore
Any session-side DROP failure other than not-found (cancellation, RPC error, aborted transaction, the multiple-storages ambiguity error) must NOT dele
server/conn_user_secrets_test.go:230
FunctionTestExecUserSecretDDLExecErrorNotPersisted
(t *testing.T)
server/conn_user_secrets_test.go:141
FunctionTestExecUserSecretDDLIfNotExistsFlag
IF NOT EXISTS must flow through to the store so an already-stored secret is not silently replaced while DuckDB no-ops the live session.
server/conn_user_secrets_test.go:252
FunctionTestExecUserSecretDDLNotHandledCases
(t *testing.T)
server/conn_user_secrets_test.go:69
FunctionTestExecUserSecretDDLPutFailureSurfaces
(t *testing.T)
server/conn_user_secrets_test.go:156
FunctionTestExecUserSecretDDLRejections
(t *testing.T)
server/conn_user_secrets_test.go:99
FunctionTestExecuteQueryDirectPassthroughPreservesUse
(t *testing.T)
server/conn_passthrough_test.go:64
FunctionTestExecuteSelectQueryDoesNotRollbackInsideUserTransaction
(t *testing.T)
server/conn_test.go:1958
FunctionTestExecuteSelectQueryRecoversAbortedAutocommitConnection
(t *testing.T)
server/conn_test.go:1749
FunctionTestExecuteSelectQueryReturnsErrorDetails
(t *testing.T)
server/conn_test.go:1580
FunctionTestExecuteSelectQuery_LogsErrorOnWireWriteFailure
TestExecuteSelectQuery_LogsErrorOnWireWriteFailure verifies the regression from the posthog-mw-prod-us TCP-write-timeout incident: when a mid-stream w
server/conn_querylog_lifecycle_test.go:261
FunctionTestExecuteSingleStatementAbortedRecoveryPreservesAlterViewFallback
(t *testing.T)
server/conn_test.go:1820
FunctionTestExecuteSingleStatementRecoversAbortedAutocommitAlterViewFallback
(t *testing.T)
server/conn_test.go:1707
FunctionTestExecuteUpdateWithTrailerCapturesProfilingMetadata
TestExecuteUpdateWithTrailerCapturesProfilingMetadata locks in the fix for the bidi-streaming trailer bug: ExecuteUpdate is a DoPut stream and grpc.Tr
server/flightclient/exec_update_trailer_test.go:55
FunctionTestExecutorCanReportPerfQueryErrorsWithoutFailingStep
(t *testing.T)
tests/scenario/perf/adapter_test.go:143
FunctionTestExecutorCleanupTimeoutIsDistinctFromWorkloadFailure
(t *testing.T)
tests/scenario/provision/steps_test.go:199
FunctionTestExecutorClosesCreatedDriversWhenLaterDriverCreationFails
(t *testing.T)
tests/scenario/perf/adapter_test.go:226
FunctionTestExecutorDoesNotRetryNonTransientSQLErrors
(t *testing.T)
tests/scenario/sql/steps_test.go:80
FunctionTestExecutorFailsPerfStepWhenMeasuredQueryErrors
(t *testing.T)
tests/scenario/perf/adapter_test.go:98
FunctionTestExecutorFailsWhenSQLReturnsFewerThanMinRows
(t *testing.T)
tests/scenario/sql/steps_test.go:127
← previousnext →4,201–4,300 of 5,901, ranked by callers