Skip to main content

Documentation Index

Fetch the complete documentation index at: https://private-7c7dfe99-page-updates.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

aggThrow

Introduced in: v20.1.0 This function can be used for the purpose of testing exception safety. It will throw an exception on creation with the specified probability. Syntax
aggThrow(throw_prob)
Arguments
  • throw_prob — Probability to throw on creation. Float64
Returned value Returns an exception: Code: 503. DB::Exception: Aggregate function aggThrow has thrown exception successfully. Examples Usage example
Query
SELECT number % 2 AS even, aggThrow(number) FROM numbers(10) GROUP BY even;
Response
Received exception:
Code: 503. DB::Exception: Aggregate function aggThrow has thrown exception successfully: While executing AggregatingTransform. (AGGREGATE_FUNCTION_THROW)