Skip to main content

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
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
Response
Last modified on June 23, 2026