Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PostHog/duckgres
/ functions
Functions
5,901 in github.com/PostHog/duckgres
⨍
Functions
5,901
◇
Types & classes
803
Function
TestDoCopyFromStdinKeepsRawSQLTransactionDrainOpenWhileReceiving
(t *testing.T)
duckdbservice/copy_from_stdin_test.go:332
Function
TestDoCopyFromStdinRejectsConcurrentSessionOperation
(t *testing.T)
duckdbservice/copy_from_stdin_test.go:189
Function
TestDoCopyFromStdinRejectsMissingPlaceholder
(t *testing.T)
duckdbservice/copy_from_stdin_test.go:215
Function
TestDoCopyFromStdinRequiresSession
(t *testing.T)
duckdbservice/copy_from_stdin_test.go:242
Function
TestDoGetStatementConsumesHandleBeforeStreaming
(t *testing.T)
duckdbservice/flight_handler_test.go:1061
Function
TestDoGetStatementEmptyQueryDeletesHandle
(t *testing.T)
duckdbservice/flight_handler_test.go:1030
Function
TestDoGetStatementKeepsRawSQLTransactionDrainOpenBeforeStreamingStarts
(t *testing.T)
duckdbservice/flight_handler_test.go:1105
Function
TestDoPutCommandStatementUpdateKeepsRecoverySerializedPerSession
(t *testing.T)
server/flightsqlingress/ingress_test.go:493
Function
TestDockerComposeArgsAllowsMultipleServices
(t *testing.T)
tests/integration/harness_test.go:19
Function
TestDockerComposeArgsStartsOnlyRequestedServices
(t *testing.T)
tests/integration/harness_test.go:9
Function
TestDockerComposeArgsWithoutServices
(t *testing.T)
tests/integration/harness_test.go:29
Function
TestDockerComposeCommandUsesDockerCLIPlugin
(t *testing.T)
tests/integration/harness_test.go:39
Function
TestDockerComposeCoreStack
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
Function
TestDoubleUSR1Ignored
(t *testing.T)
tests/controlplane/controlplane_test.go:539
Function
TestDrainAndRetireDrainedSequence
(t *testing.T)
controlplane/worker_lifecycle_test.go:283
Function
TestDriverUsesDuckhogVariant
(t *testing.T)
tests/perf/drivers/flight/driver_test.go:21
Function
TestDriverUsesPGWireVariant
(t *testing.T)
tests/perf/drivers/pgwire/driver_test.go:21
Function
TestDuckDBAcceptsTranspiledCasts
TestDuckDBAcceptsTranspiledCasts confirms the exact SQL forms emitted by the transpiler's fixupAST cast fixes execute against real DuckDB.
server/cast_compat_test.go:12
Function
TestDuckDBTypeToArrow
(t *testing.T)
duckdbservice/arrowmap/arrowmap_test.go:42
Function
TestDuckLakeBooleanPredicatesAndMergeInControlPlane
(t *testing.T)
tests/controlplane/ducklake_bool_merge_test.go:84
Function
TestDuckLakeCheckpointerDisabledWhenIntervalZero
(t *testing.T)
server/checkpoint_test.go:43
Function
TestDuckLakeCheckpointerDisabledWhenNoMetadataStore
(t *testing.T)
server/checkpoint_test.go:28
Function
TestDuckLakeCheckpointerStopIsIdempotent
(t *testing.T)
server/checkpoint_test.go:9
Function
TestDuckLakeCheckpointerStopWaitsForLoop
(t *testing.T)
server/checkpoint_test.go:183
Function
TestDuckLakeConcurrentTransactions
TestDuckLakeConcurrentTransactions is an extensive concurrency test suite for DuckLake transactions. It exercises concurrent inserts, updates, deletes
tests/integration/ducklake_concurrency_test.go:130
Function
TestDuckLakeMetadataIndexesNamesMatchStatements
(t *testing.T)
server/server_test.go:372
Function
TestDuckLakeProfilePolicies
(t *testing.T)
transpiler/backend/profile_test.go:5
Function
TestDucklingBucketName
(t *testing.T)
controlplane/configstore/bucketname_test.go:5
Function
TestDucklingCreateCnpgShardRequiresDuckLake
TestDucklingCreateCnpgShardRequiresDuckLake verifies the Create guard: a cnpg-shard CR without DuckLake has nothing to attach and is rejected.
controlplane/provisioner/controller_test.go:812
Function
TestDucklingCreateExternalDataStoreRequiresBucket
TestDucklingCreateExternalDataStoreRequiresBucket verifies the dataStore guard: an external dataStore needs a bucket name.
controlplane/provisioner/controller_test.go:987
Function
TestDucklingCreateExternalRequiresFields
TestDucklingCreateExternalRequiresFields verifies the Create guard: an external CR is rejected without endpoint + passwordAwsSecret.
controlplane/provisioner/controller_test.go:974
Function
TestDucklingCreateRejectsUnsupportedType
TestDucklingCreateRejectsUnsupportedType verifies the control plane refuses to create metadata-store types it doesn't provision (notably "external").
controlplane/provisioner/controller_test.go:833
Function
TestDucklingCreateUsesNameVerbatim
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
Function
TestDucklingMetadataStoreAddressPrefersPgBouncerEndpoint
(t *testing.T)
controlplane/org_activation_test.go:37
Function
TestDucklingMetadataStoreAddressRejectsEmptyEndpoints
(t *testing.T)
controlplane/org_activation_test.go:71
Function
TestDucklingMetadataStoreAddressRejectsInvalidPgBouncerEndpoint
(t *testing.T)
controlplane/org_activation_test.go:57
Function
TestDucklingMetadataStoreAddressUsesDirectEndpointByDefault
(t *testing.T)
controlplane/org_activation_test.go:18
Function
TestDucklingsMetadataDegrades
TestDucklingsMetadataDegrades pins the nil-lister and error paths: nil → available=false (not 500), lister error → 500.
controlplane/admin/ducklings_metadata_test.go:91
Function
TestDucklingsMetadataHandler
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
Function
TestETLBatchOperations
(t *testing.T)
server/etl_patterns_test.go:194
Function
TestETLCTEQueries
(t *testing.T)
server/etl_patterns_test.go:310
Function
TestETLCommentedQueries
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
Function
TestETLMetadataQueries
(t *testing.T)
server/etl_patterns_test.go:125
Function
TestETLSchemaEvolution
(t *testing.T)
server/etl_patterns_test.go:252
Function
TestEffectiveDefaultWorkerTTL
(t *testing.T)
controlplane/multitenant_default_ttl_test.go:10
Function
TestEffectiveSessionDefaultCommandDuckLakeClientSearchPathOnly
(t *testing.T)
controlplane/session_search_path_test.go:5
Function
TestEffectiveSessionDefaultCommandEmptyForDuckLake
(t *testing.T)
controlplane/session_search_path_test.go:17
Function
TestEmptyQuery
TestEmptyQuery tests that empty queries return EmptyQueryResponse, not an error.
tests/integration/protocol_test.go:46
Function
TestEmptyTableOperations
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
Function
TestEnableUserClearsFlag
TestEnableUserClearsFlag: enable persists disabled=false and reloads.
controlplane/admin/kill_switch_test.go:141
Function
TestEncodeBinary
(t *testing.T)
server/types_test.go:497
Function
TestEncodeBinaryJSON
TestEncodeBinaryJSON verifies that encodeBinary routes JSON/JSONB OIDs through encodeJSON rather than the default text encoder.
server/types_test.go:1449
Function
TestEncodeBool
(t *testing.T)
server/types_test.go:178
Function
TestEncodeBytea
(t *testing.T)
server/types_test.go:465
Function
TestEncodeDate
(t *testing.T)
server/types_test.go:377
Function
TestEncodeDecodeInterval
(t *testing.T)
server/types_test.go:1284
Function
TestEncodeDecodeTime
(t *testing.T)
server/types_test.go:1212
Function
TestEncodeDecodeUBIGINTMax
(t *testing.T)
server/types_test.go:1085
Function
TestEncodeDecodeUUID
(t *testing.T)
server/types_test.go:1164
Function
TestEncodeFloat4
(t *testing.T)
server/types_test.go:315
Function
TestEncodeFloat8
(t *testing.T)
server/types_test.go:346
Function
TestEncodeInt2
(t *testing.T)
server/types_test.go:212
Function
TestEncodeInt4
(t *testing.T)
server/types_test.go:253
Function
TestEncodeInt8
(t *testing.T)
server/types_test.go:285
Function
TestEncodeJSON
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
Function
TestEncodeNumeric
(t *testing.T)
server/types_test.go:885
Function
TestEncodeTimestamp
(t *testing.T)
server/types_test.go:421
Function
TestEndTransactionKeepsDrainOpenForOpenTransaction
(t *testing.T)
duckdbservice/flight_handler_test.go:816
Function
TestEndTransactionRollbackReleasesAbandonedStatementOperation
(t *testing.T)
duckdbservice/flight_handler_test.go:868
Function
TestEnrichSpanWithProfilingSummaryIncludesResourceUsage
(t *testing.T)
server/profiling_test.go:195
Function
TestEnsureQueryLogTableAddsOrgIDToExistingTable
(t *testing.T)
server/querylog_test.go:541
Function
TestEnsureQueryLogTableCreatesResourceUsageColumns
(t *testing.T)
server/querylog_test.go:375
Function
TestEnsureQueryLogTableWithAttachedCatalog
(t *testing.T)
server/querylog_test.go:422
Function
TestErrorRatioFiltersErrors
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
Function
TestErrorRecovery
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
Function
TestErrorsAggregateAcrossCPs
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
Function
TestEscapeSQLStringLiteral
(t *testing.T)
server/querylog_test.go:367
Function
TestExecUserSecretDDLCreatePersists
(t *testing.T)
server/conn_user_secrets_test.go:44
Function
TestExecUserSecretDDLDropDeletesFromStore
(t *testing.T)
server/conn_user_secrets_test.go:174
Function
TestExecUserSecretDDLDropFallsBackToStore
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
Function
TestExecUserSecretDDLDropOtherErrorsDoNotTouchStore
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
Function
TestExecUserSecretDDLExecErrorNotPersisted
(t *testing.T)
server/conn_user_secrets_test.go:141
Function
TestExecUserSecretDDLIfNotExistsFlag
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
Function
TestExecUserSecretDDLNotHandledCases
(t *testing.T)
server/conn_user_secrets_test.go:69
Function
TestExecUserSecretDDLPutFailureSurfaces
(t *testing.T)
server/conn_user_secrets_test.go:156
Function
TestExecUserSecretDDLRejections
(t *testing.T)
server/conn_user_secrets_test.go:99
Function
TestExecuteQueryDirectPassthroughPreservesUse
(t *testing.T)
server/conn_passthrough_test.go:64
Function
TestExecuteSelectQueryDoesNotRollbackInsideUserTransaction
(t *testing.T)
server/conn_test.go:1958
Function
TestExecuteSelectQueryRecoversAbortedAutocommitConnection
(t *testing.T)
server/conn_test.go:1749
Function
TestExecuteSelectQueryReturnsErrorDetails
(t *testing.T)
server/conn_test.go:1580
Function
TestExecuteSelectQuery_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
Function
TestExecuteSingleStatementAbortedRecoveryPreservesAlterViewFallback
(t *testing.T)
server/conn_test.go:1820
Function
TestExecuteSingleStatementRecoversAbortedAutocommitAlterViewFallback
(t *testing.T)
server/conn_test.go:1707
Function
TestExecuteUpdateWithTrailerCapturesProfilingMetadata
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
Function
TestExecutorCanReportPerfQueryErrorsWithoutFailingStep
(t *testing.T)
tests/scenario/perf/adapter_test.go:143
Function
TestExecutorCleanupTimeoutIsDistinctFromWorkloadFailure
(t *testing.T)
tests/scenario/provision/steps_test.go:199
Function
TestExecutorClosesCreatedDriversWhenLaterDriverCreationFails
(t *testing.T)
tests/scenario/perf/adapter_test.go:226
Function
TestExecutorDoesNotRetryNonTransientSQLErrors
(t *testing.T)
tests/scenario/sql/steps_test.go:80
Function
TestExecutorFailsPerfStepWhenMeasuredQueryErrors
(t *testing.T)
tests/scenario/perf/adapter_test.go:98
Function
TestExecutorFailsWhenSQLReturnsFewerThanMinRows
(t *testing.T)
tests/scenario/sql/steps_test.go:127
← previous
next →
4,201–4,300 of 5,901, ranked by callers